<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: How to send JSON to the server?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-send-json-to-the-server</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/how-to-send-json-to-the-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nugetchar on How to send JSON to the server?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-send-json-to-the-server#p29398</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-send-json-to-the-server#p29398</guid>
        	        	<description><![CDATA[<p>Hi everyone!</p>
<p>I have a little problem:</p>
<p>I have a grid which works perfectly, except for one thing: after an edit, I need to format new datas in JSON to send them to the server.</p>
<p>And I cannot find how to do that.</p>
</p>
<p>Does someone have an idea?</p>
</p>
<p>P.S: I&#39;m not english, please forgive my mistakes.</p>
</p>
<p>EDIT: Here is the grid:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1106' value='Select Code' data-codeid='sfcode1106' /></p>
<div class='sfcode' id='sfcode1106'>
<p>$(&#34;#list&#34;).jqGrid({</p>
<p><span style=&#34;white-space:pre&#34;> </span>url:&#39;datas.php&#39;,</p>
<p><span style=&#34;white-space:pre&#34;> </span>datatype: &#34;json&#34;,</p>
<p><span style=&#34;white-space:pre&#34;> </span>mtype: &#34;GET&#34;,</p>
<p><span style=&#34;white-space:pre&#34;> </span>colNames: [&#34;ID&#34;,&#34;Client&#34;, &#34;Projet&#34;, &#34;Tache&#34;, &#34;1&#34;, &#34;2&#34;, &#34;3&#34;, &#34;4&#34;, &#34;5&#34;, &#34;6&#34;, &#34;7&#34;, &#34;8&#34;, &#34;9&#34;, &#34;10&#34;, &#34;11&#34;, &#34;12&#34;, &#34;13&#34;, &#34;14&#34;, &#34;15&#34;, &#34;16&#34;, &#34;17&#34;, &#34;18&#34;, &#34;19&#34;, &#34;20&#34;, &#34;21&#34;, &#34;22&#34;, &#34;23&#34;, &#34;24&#34;, &#34;25&#34;, &#34;26&#34;, &#34;27&#34;, &#34;28&#34;, &#34;29&#34;, &#34;30&#34;, &#34;31&#34;],</p>
<p><span style=&#34;white-space:pre&#34;> </span>colModel: [</p>
<p><span style=&#34;white-space:pre&#34;> </span>{ name: &#34;id_record&#34;, width: 55, hidden:false},</p>
<p><span style=&#34;white-space:pre&#34;> </span>{ name: &#34;client&#34;, width: 55, sortable:true},</p>
<p><span style=&#34;white-space:pre&#34;> </span>{ name: &#34;projet&#34;, width: 150, align: &#34;right&#34;, sortable:true},</p>
<p><span style=&#34;white-space:pre&#34;> </span>{ name: &#34;tache&#34;, width: 150, align: &#34;right&#34;, sortable:true, editable:true}</p>
<p><span style=&#34;white-space:pre&#34;> </span>],</p>
<p><span style=&#34;white-space: pre;&#34;> </span>height: &#39;100%&#39;,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>cellEdit: true,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>cellurl: &#34;<a href="https://ort8m12c8ckf.runscope.net&#038;quot" rel="nofollow" target="_blank">https://ort8m12c8ckf.runscope.net&#038;quot</a>;,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>pager: &#34;#pager&#34;,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>rowNum: 10,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>rowList: [10, 20, 30],</p>
<p><span style=&#34;white-space: pre;&#34;> </span>sortname: &#34;id_record&#34;,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>sortorder: &#34;asc&#34;,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>viewrecords: true,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>gridview: true,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>autoencode: true,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>caption: &#34;My Grid&#34;,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>gridview: true,</p>
<p><span style=&#34;white-space: pre;&#34;> </span>beforeSubmitCell : function(rowid,celname,value,iRow,iCol) {</p>
<p><span style=&#34;white-space: pre;&#34;> </span>selectedRowId = $(&#39;#list&#39;).jqGrid (&#39;getGridParam&#39;, &#39;selrow&#39;);</p>
<p><span style=&#34;white-space: pre;&#34;> </span>cellValue = $(&#39;#list&#39;).jqGrid(&#39;getCell&#39;, selectedRowId, &#39;id_record&#39;);</p>
<p><span style=&#34;white-space: pre;&#34;> </span>return {valeur:value,nom_cellule:celname,id_record:cellValue};</p>
<p><span style=&#34;white-space: pre;&#34;> </span>}</p>
<p>});</p>
</div>
]]></description>
        	        	<pubDate>Mon, 26 Aug 2013 17:27:35 +0300</pubDate>
        </item>
</channel>
</rss>