<?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: cell edit problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cell-edit-problem</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/cell-edit-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>guidob on cell edit problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-edit-problem#p10566</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-edit-problem#p10566</guid>
        	        	<description><![CDATA[<p>OK, solved . I changed &#39;cellsubmit&#39; to remote</p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 13:25:28 +0300</pubDate>
        </item>
        <item>
        	<title>guidob on cell edit problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-edit-problem#p10558</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-edit-problem#p10558</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I&#39;m using 3.5.3 library version. I&#39;m trying to use the cell edit option. I cannot able to save to DB in the cell edit mode, but it work fine if I click on the down-left grid corner and use the &#39;edit selected row&#39; . In this case the data are saved to the DB&#160;. This is my celledit.js file:</p>
<p>jQuery("#celltbl").jqGrid({<br />&#160;&#160; &#160;<a href="&#39;server.php?q=2&#39;" target="_blank">url:&#39;server.php?q=2&#39;</a>,<br />&#160;datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellEdit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellurl: &#39;update.php&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;update.php&#39;,<br />&#160;&#160; &#160;colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:55},<br />&#160;&#160; &#160;&#160;{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90,editable:true},<br />&#160;&#160; &#160;&#160;{name:&#39;name&#39;,index:&#39;name asc, invdate&#39;, width:100},<br />&#160;&#160; &#160;&#160;{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",editable:true,editrules:{number:true}},<br />&#160;&#160; &#160;&#160;{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",editable:true,editrules:{number:true}},&#160;&#160;<br />&#160;&#160; &#160;&#160;{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right"},&#160;&#160;<br />&#160;&#160; &#160;&#160;{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}&#160;&#160;<br />&#160;&#160; &#160;],<br />&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;imgpath: gridimgpath,<br />&#160;&#160; &#160;pager: jQuery(&#39;#pcelltbl&#39;),<br />&#160;&#160; &#160;sortname: &#39;id&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160; caption:"Cell Edit Example",<br />&#160;forceFit : true,<br />&#160;cellsubmit: &#39;clientArray&#39;,<br />&#160;afterEditCell: function (id,name,val,iRow,iCol){<br />&#160;&#160;if(name==&#39;invdate&#39;) {<br />&#160;&#160;&#160;jQuery("#"+iRow+"_invdate","#celltbl").datepicker({dateFormat:"yy-mm-dd"});<br />&#160;&#160;}<br />&#160;},<br />&#160;afterSaveCell : function(rowid,name,val,iRow,iCol) {<br />&#160;&#160;if(name == &#39;amount&#39;) {<br />&#160;&#160;&#160;var taxval = jQuery("#celltbl").getCell(rowid,iCol+1);<br />&#160;&#160;&#160;jQuery("#celltbl").setRowData(rowid,{total:parseFloat(val)+parseFloat(taxval)});<br />&#160;&#160;}<br />&#160;&#160;if(name == &#39;tax&#39;) {<br />&#160;&#160;&#160;var amtval = jQuery("#celltbl").getCell(rowid,iCol-1);<br />&#160;&#160;&#160;jQuery("#celltbl").setRowData(rowid,{total:parseFloat(val)+parseFloat(amtval)});<br />&#160;&#160;}<br />&#160;}<br />}).navGrid(&#39;#pgwidth&#39;,{edit:true,add:false,del:false});</p>
</p>
<p>Any help?</p>
]]></description>
        	        	<pubDate>Thu, 08 Oct 2009 11:15:06 +0300</pubDate>
        </item>
</channel>
</rss>