<?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: Row editing not working</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/row-editing-not-working</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/row-editing-not-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Row editing not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-editing-not-working#p8043</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-editing-not-working#p8043</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do you have any error reported in the browser.</p>
<p>Also first step</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160;onSelectRow: function(id){&#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; <strong>alert(id);</strong><br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(id &#38;&#38; id!==lastSel){&#160;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#lista1&#39;).restoreRow(lastSel);&#160;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; lastSel=id;&#160;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }&#160;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#lista1&#39;).editRow(id, true);&#160;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },</p>
</p>
<p>Check what is the id. If nothing is happen it seems that the needed modules are not loaded. Please check this in the FireBug console</p>
]]></description>
        	        	<pubDate>Mon, 27 Jul 2009 02:34:56 +0300</pubDate>
        </item>
        <item>
        	<title>Francisc Nopcea on Row editing not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-editing-not-working#p7953</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-editing-not-working#p7953</guid>
        	        	<description><![CDATA[<p>Hello!</p>
</p>
<p>I tried to do a sample demo of jqGrid and I got stuck with row editing.</p>
<p>As you can see from the source code I include all the js files.</p>
<p>I use events to detect a click on a row and start editing it.</p>
<p>The problem is that the row remains the same, I cannot edit the data.</p>
</p>
<p>I susspect the problem would be in onSelectRow</p>
</p>
<p>var lastSel; </p>
<p>jQuery().ready(function (){<br />&#160;&#160;&#160; jQuery("#lista1").jqGrid({ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; url : &#39;<a href="http://localhost:8080/DavidQueryRunner/public/jqgrid_test_data.xml&#038;#39" rel="nofollow" target="_blank"><a href="http://localhost:8080/DavidQue" rel="nofollow">http://localhost:8080/DavidQue</a>.....l&#038;#39</a>;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; datatype : "xml",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colNames : [ &#39;Inv No&#39;, &#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;, &#39;Tax&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;Total&#39;, &#39;Notes&#39; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colModel : [ {name : &#39;id&#39;,index : &#39;id&#39;,width : 75 },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name : &#39;invdate&#39;,index : &#39;invdate&#39;,width : 90},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name : &#39;name&#39;,index : &#39;name&#39;,width : 100},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name : &#39;amount&#39;,index : &#39;amount&#39;,width : 80,align : "right"},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name : &#39;tax&#39;,index : &#39;tax&#39;,width : 80,align : "right"},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name : &#39;total&#39;,index : &#39;total&#39;,width : 80,align : "right"},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name : &#39;note&#39;,index : &#39;note&#39;,width : 150,sortable : false} ],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rowNum : 10,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rownumbers : true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rowList : [ 10, 20, 30 ],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rownumWidth: 40,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; pager : jQuery(&#39;#pagera1&#39;),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sortname : &#39;id&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; viewrecords : true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sortorder : "desc",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; onSelectRow: function(id){ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(id &#38;&#38; id!==lastSel){ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#lista1&#39;).restoreRow(lastSel); <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; lastSel=id; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; } <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#lista1&#39;).editRow(id, true); <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; editurl: "server.php",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; caption : "XML Example"<br />&#160;&#160;&#160; &#160;&#160;&#160; }).navGrid(&#39;#pager1&#39;, {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; edit : false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; add : false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; del : false<br />&#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; })</p>
<p>and the HTML file is nothing more than:</p>
</p>
<p>&#60;script type="text/javascript" language="javascript"<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; src="http://localhost:8080/DavidQueryRunner/public/resources/js/jquery-1.3.2.min.js"&#62;<br />&#60;/script&#62;<br />&#60;script type="text/javascript"<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; src="http://localhost:8080/DavidQueryRunner/public/resources/js/jqgrid/jquery.jqGrid.js"&#62;<br />&#60;/script&#62;</p>
<p>&#60;link rel="stylesheet"<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; href="http://localhost:8080/DavidQueryRunner/public/resources/js/jquery-ui-1.7.2/css/ui-lightness/jquery-ui-1.7.2.custom.css"/&#62;</p>
<p>&#60;link rel="stylesheet"<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; href="http://localhost:8080/DavidQueryRunner/public/resources/js/jqgrid/css/ui.jqgrid.css"/&#62;</p>
<p>&#60;table id="lista1"&#62;&#60;/table&#62;<br />&#60;div id="pagera1" class="scroll"&#62;&#60;/div&#62;</p>
</p>
<p>So, any help on what I am doing wrong would be highly appreciated.</p>
</p>
<p>Thank you!</p>
</p>
<p>Francisc</p>
]]></description>
        	        	<pubDate>Wed, 22 Jul 2009 01:51:33 +0300</pubDate>
        </item>
</channel>
</rss>