<?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: Inline editing in subgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid</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/inline-editing-in-subgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5483</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5483</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>if you enable cellEdit - onSelectRow is not raised.</p>
<p>In this case use beforeEditCell instead.</p>
<p>You try to combine inline edit and cell edit. IMHO this is not a good idea. Use one of them and not both.</p>
<p>If you disable cellEdit - onSelectRow will be raised</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 21 Mar 2009 11:15:05 +0200</pubDate>
        </item>
        <item>
        	<title>marco.qf on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5434</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5434</guid>
        	        	<description><![CDATA[<p>news for me?</p>
]]></description>
        	        	<pubDate>Thu, 19 Mar 2009 05:46:37 +0200</pubDate>
        </item>
        <item>
        	<title>marco.qf on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5140</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5140</guid>
        	        	<description><![CDATA[<p>Hi</p>
</p>
<p>the function onSelectRow in subgrid is not called and so the subgrid is not updated</p>
<p>with firebug on firefox there aren&#39;t mistakes or errors but the risult is the same.. the subgrid is not updated</p>
]]></description>
        	        	<pubDate>Thu, 05 Mar 2009 23:17:16 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5068</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5068</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>And what does not work? What is the error if any?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 03 Mar 2009 03:27:22 +0200</pubDate>
        </item>
        <item>
        	<title>marco.qf on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5050</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5050</guid>
        	        	<description><![CDATA[<p>Hello Tony</p>
</p>
<p>i do it... where is the problem?</p>
<p>there are \\ beacause i have insert the code js with echo in php</p>
</p>
<p>jQuery(document).ready(function(){<br />var lastSel ;<br />var gridimgpath= \\"themes/basic/images\\";<br />jQuery(\\"#s2list\\").jqGrid({</p>
<p>&#160;&#160; &#160;&#160;&#160; url:&#39;dovuti.php?q=2&#38;data_inizio=".$data_inizio."&#39;, <br />&#160;&#160;&#160; datatype: \\"json\\",<br />&#160;&#160; colNames:[&#39;id_az&#39;,&#39;ragione&#39;,&#39;piva&#39;,&#39;cf&#39;,&#39;GEN&#39;,&#39;FEB&#39;,&#39;MAR&#39;,&#39;APR&#39;,&#39;MAG&#39;,&#39;GIU&#39;,&#39;LUG&#39;,&#39;AGO&#39;,&#39;SET&#39;,&#39;OTT&#39;,&#39;NOV&#39;,&#39;DIC&#39;,&#39;totale&#39; ], <br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160; {name:&#39;id_az&#39;, index:&#39;id_az&#39;,width:0,align:&#39;right&#39;,editable:false,hidden:true,sortable:true}, <br />&#160;&#160;&#160; {name:&#39;ragione&#39;, index:&#39;ragione&#39;,width:150,align:&#39;left&#39;,editable:false,sorttype:&#39;text&#39;,sortable:true}, <br />&#160;&#160;&#160; {name:&#39;piva&#39;, index:&#39;piva&#39;,width:60,align:&#39;left&#39;,editable:false,sorttype:&#39;text&#39;,sortable:true}, <br />&#160;&#160;&#160; {name:&#39;cf&#39;, index:&#39;cf&#39;,width:60,align:&#39;left&#39;,editable:false,sorttype:&#39;text&#39;,sortable:true}, <br />&#160;&#160;&#160; <br />&#160;&#160;&#160; {name:&#39;Gennaio&#39;, index:&#39;Gennaio&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Febbraio&#39;, index:&#39;Febbraio&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Marzo&#39;, index:&#39;Marzo&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Aprile&#39;, index:&#39;Aprile&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Maggio&#39;, index:&#39;Maggio&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Giugno&#39;, index:&#39;Giugno&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Luglio&#39;, index:&#39;Luglio&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Agosto&#39;, index:&#39;Agosto&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Settembre&#39;, index:&#39;Settembre&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Ottobre&#39;, index:&#39;Ottobre&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Novembre&#39;, index:&#39;Novembre&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;Dicembre&#39;, index:&#39;Dicembre&#39;,width:30,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:false,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; {name:&#39;totale&#39;, width:50,index:&#39;Totale&#39;,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:true,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; //toolbar : [true,\\"top\\"],<br />&#160;&#160;&#160; rowNum:20,&#160; <br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; gridimgpath: \\"themes/basic/images\\",<br />&#160;&#160; &#160;&#160;&#160; imgpath: \\"themes/basic/images\\",<br />&#160;&#160;&#160; pager: jQuery(&#39;#s2pager&#39;),<br />&#160;&#160;&#160; sortname: &#39;id_az&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: \\"desc\\",<br />&#160;&#160;&#160; caption:\\"Dovuti\\",<br />&#160;&#160;&#160; forceFit : true,<br />&#160;&#160;&#160; cellEdit: false,<br />&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;&#160; hiddengrid: false ,<br />&#160;&#160;&#160; subGrid: true,<br />&#160; <br />onHeaderClick: function (stat) {<br />&#160;&#160;&#160; &#160;&#160;&#160; if(stat == &#39;visible&#39; ){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(\\"#filter\\").css(\\"display\\",\\"none\\");<br />&#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; },<br />&#160;&#160;&#160; <br />&#160;<br />&#160; subGridRowExpanded: function(subgrid_id, row_id) {<br />&#160;&#160; <br />&#160;&#160;&#160; var gsr = $(\\"#s2list\\").getCell(row_id,1);<br />&#160;&#160;&#160; var subgrid_table_id;<br />&#160;&#160;&#160; subgrid_table_id = subgrid_id+\\"_t\\";<br />&#160;&#160;&#160;&#160;&#160; jQuery(\\"#\\"+subgrid_id).html(\\"&#60;table id=&#39;\\"+subgrid_table_id+\\"&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;\\");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(\\"#\\"+subgrid_table_id).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:\\"sub_grid_dovuti.php?q=2&#38;data_inizio=".$data_inizio."&#38;id=\\"+gsr,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: \\"json\\",<br />&#160;&#160;&#160; colNames:[&#39;id&#39;,&#39;nome&#39;,&#39;cognome&#39;,&#39;GEN&#39;,&#39;FEB&#39;,&#39;MAR&#39;,&#39;APR&#39;,&#39;MAG&#39;,&#39;GIU&#39;,&#39;LUG&#39;,&#39;AGO&#39;,&#39;SET&#39;,&#39;OTT&#39;,&#39;NOV&#39;,&#39;DIC&#39;,&#39;tot&#39;,&#39;aggiungi+&#39;],<br />&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, key:true},<br />&#160;&#160;&#160; {name:&#39;nome&#39;,index:&#39;nome&#39;},<br />&#160;&#160;&#160; {name:&#39;cognome&#39;,index:&#39;cognome&#39;},<br />&#160;&#160;&#160; {name:&#39;Gennaio&#39;, index:&#39;Gennaio&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Febbraio&#39;, index:&#39;Febbraio&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Marzo&#39;, index:&#39;Marzo&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Aprile&#39;, index:&#39;Aprile&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Maggio&#39;, index:&#39;Maggio&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Giugno&#39;, index:&#39;Giugno&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Luglio&#39;, index:&#39;Luglio&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Agosto&#39;, index:&#39;Agosto&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Settembre&#39;, index:&#39;Settembre&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Ottobre&#39;, index:&#39;Ottobre&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Novembre&#39;, index:&#39;Novembre&#39;, align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;Dicembre&#39;, index:&#39;Dicembre&#39;,align:&#39;left&#39;,editable:true,sorttype:&#39;float&#39;,sortable:false},<br />&#160;&#160;&#160; {name:&#39;totale&#39;, width:50,index:&#39;Totale&#39;,align:&#39;left&#39;,editable:false,sorttype:&#39;float&#39;,sortable:true,edittype:&#39;select&#39;, editoptions:{value:\\":\\"}},<br />&#160;&#160;&#160; {name:&#39;aggiungi+&#39;,index:&#39;aggiungi+&#39;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],";?&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //width:100+"%",<br />&#160;&#160;&#160; height: 100+"%",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:20,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellEdit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: gridimgpath,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id){ if(id &#38;&#38; id!==lastSel)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#subgrid_table_id").restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var chiave = $("#subgrid_table_id").getCell(id,0);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#subgrid_table_id").editRow(id,true,on_edit,checksave,&#39;update_dovuti.php?chiave=&#39;+chiave);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastSel=id;<br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc"<br />&#160;&#160;&#160;&#160;&#160;&#160; })<br />&#160;&#160; },<br />&#160;&#160; <br />})</p>
<p>......</p>
<p>..........</p>
]]></description>
        	        	<pubDate>Mon, 02 Mar 2009 04:14:28 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5031</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p5031</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The subGrid should be created first and then use this in the subgrid code.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 28 Feb 2009 14:45:05 +0200</pubDate>
        </item>
        <item>
        	<title>marco.qf on Inline editing in subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p4979</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-in-subgrid#p4979</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>i have a problem&#8230;</p>
<p>in subgrid is it possible in line editing tecnique? and if possible how?</p>
</p>
<p>&#160; onSelectRow: function(id){ if(id &#38;&#38; id!==lastSel)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#subgrid_table_id").restoreRow(lastSel);<br />&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var chiave = $("#subgrid_table_id").getCell(id,0);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#subgrid_table_id").editRow(id,true,on_edit,checksave,&#39;update_dovuti.php?chiave=&#39;+chiave);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastSel=id;<br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; }</p>
<p>this does not work! 🙁</p>
]]></description>
        	        	<pubDate>Thu, 26 Feb 2009 08:18:27 +0200</pubDate>
        </item>
</channel>
</rss>