<?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 record directly after succesful save.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save</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-record-directly-after-succesful-save/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Seroczynski on Edit record directly after succesful save.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16277</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16277</guid>
        	        	<description><![CDATA[<p>Hey Tony,</p>
</p>
<p>Thanks! Your solution fixed my problem.</p>
]]></description>
        	        	<pubDate>Wed, 07 Apr 2010 13:48:06 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Edit record directly after succesful save.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16263</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16263</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Ah I see,</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5980' value='Select Code' data-codeid='sfcode5980' /></p>
<div class='sfcode' id='sfcode5980'>
<p>$("#grid").jqGrid(&#39;resetSelection&#39;);</p>
<p>editValue = null;</p>
</div>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Tue, 06 Apr 2010 18:13:22 +0300</pubDate>
        </item>
        <item>
        	<title>Seroczynski on Edit record directly after succesful save.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16252</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16252</guid>
        	        	<description><![CDATA[<p>Thanks Tony, your help is appreciated. However, the row loses it&#39;s selection but the problem still exists.</p>
]]></description>
        	        	<pubDate>Tue, 06 Apr 2010 13:29:03 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Edit record directly after succesful save.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16188</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16188</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>One possible solution is to do resetSelection after restoring the row- which will clear the selection from the the row</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6124' value='Select Code' data-codeid='sfcode6124' /></p>
<div class='sfcode' id='sfcode6124'>
<p>...</p>
<p>$("#grid").jqGrid(&#39;resetSelection&#39;);</p>
</div>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Sat, 03 Apr 2010 14:02:23 +0300</pubDate>
        </item>
        <item>
        	<title>Seroczynski on Edit record directly after succesful save.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16044</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/edit-record-directly-after-succesful-save#p16044</guid>
        	        	<description><![CDATA[<p>Hi, I&#39;ve searched the forum but couldn&#39;t find any related problem so I hope somebody knows how to help me out.</p>
<p>I&#39;ve been using inline editing with a custom save button for quite a while now. Everything works fine, except for one thing. When I save my records (I just a custom script) I use the following:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3838' value='Select Code' data-codeid='sfcode3838' /></p>
<div class='sfcode' id='sfcode3838'>jQuery(&#34;#grid&#34;).jqGrid(&#39;saveRow&#39;, recordId, false);<br />jQuery(&#34;#grid&#34;).jqGrid(&#39;restoreRow&#39;, recordId);</div>
</p>
<p>This saves the changes succesfully and restores the records to their &#39;native&#39; looks (so no input forms). However, the last record that gets saved is highlighted and cannot be edited again by clicking on it untill I&#39;ve clicked another record first.</p>
</p>
<p>This is my entire jqGrid script (excluding the custom save functions):</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5934' value='Select Code' data-codeid='sfcode5934' /></p>
<div class='sfcode' id='sfcode5934'>var editValue;</p>
<p>jQuery(document).ready(function(){<br />jQuery(&#39;#Tarieven-Ben&#39;).jqGrid({<br />hidegrid: false, <br />width: 1810, <br />height: 220, <br />xmlReader: { <br />root: &#39;Grid&#39;, <br />row: &#39;Rij&#39;, <br />page: &#39;Grid&#62;Pagina&#39;, <br />total: &#39;Grid&#62;Paginas&#39;, <br />records: &#39;Grid&#62;Records&#39;, <br />repeatitems: false, <br />id: &#39;SOID&#39; <br />}, </p>
<p>url: &#39;functions/jqGridUpdate.php?bronXml=simonlies-test&#38;queryId=0&#38;sqlTeller=0&#38;bronXml=simonlies-test&#39;, <br />datatype: &#39;xml&#39;, <br />mtype: &#39;GET&#39;, <br />colNames: [&#39;ID&#39;, &#39;Volg&#39;, &#39;Provider&#39;, &#39;Abonnement&#39;, &#39;Act&#39;, &#39;Netw&#39;, &#39;Categorie&#39;, &#39;Type&#39;, &#39;Mi&#39;, &#39;Sm&#39;, &#39;Mm&#39;, &#39;Cm&#39;, &#39;BuiMin&#39;, &#39;BuiSMS&#39;, &#39;BuiMMS&#39;, &#39;Loopt&#39;, &#39;HBH&#39;, &#39;Takt&#39;, &#39;Start&#39;, &#39;Entree&#39;, &#39;Kosten&#39;, &#39;Acties&#39;, &#39;Opmerkingen&#39;], <br />colModel: [ <br />{name: &#39;SOID&#39;, index: &#39;SOID&#39;, width: 30, editable: false, editoptions:{readonly:false}}, <br />{name: &#39;Volgnummer&#39;, index: &#39;Volgnummer&#39;, width: 40, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Provider&#39;, index: &#39;Provider&#39;, width: 55, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Abonnement&#39;, index: &#39;Abonnement&#39;, width: 140, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Actief&#39;, index: &#39;Actief&#39;, width: 30, edittype: &#39;checkbox&#39;,editable: true, editoptions:{readonly:false, value: &#39;1:0&#39;}}, <br />{name: &#39;Netwerk&#39;, index: &#39;Netwerk&#39;, width: 50, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Categorie&#39;, index: &#39;Categorie&#39;, width: 65, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Type&#39;, index: &#39;Type&#39;, width: 125, edittype: &#39;select&#39;,editable: true, editoptions:{readonly:false, value:&#39;:;Actiebundel:Actiebundel;Basis:Basis;Databundel:Databundel;SMS bundel:SMS bundel;SMS verdubbelaar:SMS verdubbelaar;Voordeelbundel:Voordeelbundel&#39;}}, <br />{name: &#39;AantalMin&#39;, index: &#39;AantalMin&#39;, width: 35, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;AantalSMS&#39;, index: &#39;AantalSMS&#39;, width: 35, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;AantalMMS&#39;, index: &#39;AantalMMS&#39;, width: 35, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Cummulatief&#39;, index: &#39;Cummulatief&#39;, width: 30, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;KostenBuiMin&#39;, index: &#39;KostenBuiMin&#39;, width: 40, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;KostenBuiSMS&#39;, index: &#39;KostenBuiSMS&#39;, width: 40, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;KostenBuiMMS&#39;, index: &#39;KostenBuiMMS&#39;, width: 45, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Looptijden&#39;, index: &#39;Looptijden&#39;, width: 40, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Houdbaarheid&#39;, index: &#39;Houdbaarheid&#39;, width: 30, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Takt&#39;, index: &#39;Takt&#39;, width: 40, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Starttarief&#39;, index: &#39;Starttarief&#39;, width: 40, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Entree&#39;, index: &#39;Entree&#39;, width: 50, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Kosten&#39;, index: &#39;Kosten&#39;, width: 50, editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Acties&#39;, index: &#39;Acties&#39;, width: 150, edittype: &#39;textarea&#39;,editable: true, editoptions:{readonly:false}}, <br />{name: &#39;Opmerkingen&#39;, index: &#39;Opmerkingen&#39;, width: 150, edittype: &#39;textarea&#39;,editable: true, editoptions:{readonly:false}} <br />], <br />onSelectRow: function(id){ <br />if(id &#38;&#38; id!==editValue){ <br />jQuery(&#39;#Tarieven-Ben&#39;).jqGrid(&#39;editRow&#39;, id, true); <br />editValue=id; <br />} <br />}, <br />pager: &#39;#SO-Ben&#39;, <br />rowNum: 10, <br />rowList: [10, 20, 30], <br />sortname: &#39;SOID&#39;, <br />sortorder: &#39;ASC&#39;, <br />viewrecords: true, <br />caption: &#39;SimOnlyTarieven&#39;, <br />queryId: &#39;0&#39;, <br />editurl: &#39;functions/formSave.php?bronXml=simonlies-test&#38;spreadsheet=1&#38;queryId=0&#38;Naam=Tarieven-Ben&#39; <br />});</p>
</div>
<p>Any help would be greatly appreciated.</p>
]]></description>
        	        	<pubDate>Tue, 30 Mar 2010 15:59:57 +0300</pubDate>
        </item>
</channel>
</rss>