<?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: Edit row problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-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/edit-row-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Izaskun on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16596</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16596</guid>
        	        	<description><![CDATA[<p>Thanks you very much Tony.</p>
]]></description>
        	        	<pubDate>Thu, 22 Apr 2010 09:32:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16302</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16302</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe you will need to use beforeShowForm, but if you use a paging buttonns in the form you will have trouble with this.</p>
<p>I recommend you to disble these buttons (see docs) and use the beforeShowForm in both add and edit in order to do what you want. Also it is a good idea to use closeAfterAdd and closeAfterEdit options in order to close the form when you post the values.</p>
</p>
<p>Also into the documentation page there is example haw to dynamically show/hide a row in the form.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Apr 2010 13:24:44 +0300</pubDate>
        </item>
        <item>
        	<title>Izaskun on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16253</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16253</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thanks you Tom it was very usefull for me.</p>
</p>
<p>Could you help me with another problem?</p>
<p>I ned to feed a grid&#39;s column&#39;s cells with a combobox, a checkbox or a textbox, depending of a concrete value i&#39;m reading from database.</p>
<p>In order to do this I&#39;ve created a grid with 5 columns, the first column is always visible and others columns are always invisible (the second column type is select, third is checkbox, fourth is textbox and the fifth column has the codes selected in the combo just in case you use it) . The first column contains the value fed by the hidden columns.</p>
<p>I use the code "<span style="color: #0000ff;">plantillaGrid.editGridRow( numFila, {height:280, bSubmit: "hola",reloadAfterSubmit:false} )</span>" to edit a row and, depending the row I select, I hide or show one of the columns wich are hidden in the original grid.</p>
<p>For example I&#39;ve a grid like this.</p>
<p>1st record has to be a checkbox</p>
<p>2nd record has to be a multiple select</p>
<p>3rd record has to be a textbox</p>
</p>
<p>When I edit the first record I hide the first column and show the third one. I check the checkbox and when I click Submit button, the selected row has to be changed according to the values I&#39;ve entered in the window opened by the editGridRow sentence. After doing this, the first column must be updated to "Yes".</p>
<p>When I edit the second record I hide the first column and show the second one. I select all the values I want in the combobox and, when I click in submit button, after updating the row, I&#180;ve to put&#160; the selected values on the combobox in the first column, and the codes selected in the combo in the 5th column...</p>
</p>
<p>I&#39;ve tried using the afterSubmit, afterShowForm, onclickSubmit and onClose events, but none of them seem to fit my concrete needs: they always seem to be triggered when jQgrid hasn&#39;t still changed the edited row&#39;s values with the values entered in the new window.</p>
<p>Thanks you very much,</p>
</p>
<p>Izaskun</p>
]]></description>
        	        	<pubDate>Tue, 06 Apr 2010 13:47:33 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16121</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16121</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>editurl:&#39;clientArray&#39;,&#160;</p>
</p>
<p>is not supported in editGridRow method. Create a empty file in the server and just set it to the edit url.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 20:06:58 +0300</pubDate>
        </item>
        <item>
        	<title>Izaskun on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16022</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p16022</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#180;ve the same problem as battancs.</p>
</p>
<p>I&#39;ve a grid like this:</p>
<p><span style="color: #0000ff;">("#grid_plantilla").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;url: "v93PlantillaMatHomologadosInOP.do?action=",<br />&#160;&#160; &#160;&#160;&#160; &#160;datatype: "json",<br />&#160;&#160; &#160;&#160;&#160; &#160;scroll: true,<br />&#160;&#160; &#160;&#160;&#160;&#160; width: 895,<br />&#160;&#160; &#160;&#160;&#160; &#160;height: &#39;auto&#39;,&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;id&#39;,&#39;codCampo&#39;,&#39;descripcion&#39;,&#39;valor&#39;,&#39;tipDato&#39;,&#39;decimales&#39;,&#39;longitud&#39;,&#39;tabla&#39;,&#39;multiple&#39;,&#39;oblig&#39;],&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;colModel: [{name:&#39;id&#39;,index:&#39;1&#39;,width:100,editable: true},//hidden:true, , editable:false<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;codCampo&#39;,index:&#39;2&#39;,width:100,editable: true},//hidden:true,, editable:false<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;descripcion&#39;,index:&#39;3&#39;,width:300,editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; {name:&#39;valor&#39;,index:&#39;4&#39;,width:400,editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tipDato&#39;,index:&#39;5&#39;,width:500,editable: true},<br />&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;decimales&#39;,index:&#39;4&#39;,width:500,editable: true},<br />&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;longitud&#39;,index:&#39;4&#39;,width:500,editable: true},<br />&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tabla&#39;,index:&#39;4&#39;,width:500,editable: true},<br />&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;multiple&#39;,index:&#39;4&#39;,width:500,editable: true},<br />&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;oblig&#39;,index:&#39;4&#39;,width:500,editable: true, hidden:true}],<br />&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;imgpath: jsPath,<br />&#160;&#160; &#160;&#160;&#160; &#160;multiselect: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;multiboxonly: true,&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;pager: $("#pager_grid_plantilla"),<br />&#160;&#160; &#160;&#160;&#160;&#160; editurl:&#39;clientArray&#39;,&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160;&#160; gridComplete: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repintarPlantilla();<br />&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;ondblClickRow: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editarFilaPlantilla();<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;});</span></p>
</p>
<p>And when I want to edit a row I do this:</p>
<p><span style="color: #0000ff;">$("#grid_plantilla").jqGrid(&#39;editGridRow&#39;,filaSeleccionada,{height:280, bSubmit: "hola",reloadAfterSubmit:false});</span></p>
</p>
<p>But whe I check the button submit I get this error:</p>
<p><span style="color: #ff0000;">error Status: &#39;Not Found&#39;. Error code: 404</span></p>
<p>[Image Can Not Be Found]</p>
<p>[Image Can Not Be Found]</p>
<p>Could you hel me?</p>
</p>
<p>Thanks you very much</p>
]]></description>
        	        	<pubDate>Mon, 29 Mar 2010 13:37:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p15781</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p15781</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry I do not understand what you mean.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 17 Mar 2010 21:17:54 +0200</pubDate>
        </item>
        <item>
        	<title>battancs on Edit row problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p15743</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-row-problem#p15743</guid>
        	        	<description><![CDATA[<p>Hi!</p>
<p>The problem is the following:</p>
<p>I made custom line editor:</p>
<p>$("#bedata").click(function(){ jQuery("#User").jqGrid(&#39;editGridRow&#39;,"new",{<br />&#160;&#160; &#160;&#160;&#160;&#160; url: "index.php?r=admin/user/create",<br />&#160;&#160; &#160;&#160;&#160; &#160;reloadAfterSubmit:false}); });</p>
</p>
<p>If the application returns an error, the error can not write the text, but also &#39;error Status:&#39; Create error &#39;. Error code: 400 &#39;.</p>
<p>If the original function to use, it is the correct error text will be printed.</p>
<p>Thank you</p>
]]></description>
        	        	<pubDate>Mon, 15 Mar 2010 22:40:56 +0200</pubDate>
        </item>
</channel>
</rss>