<?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: How to update row id after editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing</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/how-to-update-row-id-after-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on How to update row id after editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23401</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23401</guid>
        	        	<description><![CDATA[<p>I modified controller to return new row id and created</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8615' value='Select Code' data-codeid='sfcode8615' /></p>
<div class='sfcode' id='sfcode8615'>
<p>function aftersavefunc(rowID, response) { <br />&#160; alert( &#39;old: &#39;+ rowID + &#39;nNew: &#39;+ response.responseText ); <br />&#160; $(&#34;#&#34;+rowID).attr(&#34;id&#34;, response.responseText); <br />&#160; }</p>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit5889' value='Select Code' data-codeid='sfcode5889' /></p>
<div class='sfcode' id='sfcode5889'>&#160;</div>
<p>alert box shows that correct ids are passed. However if saving row second time, <strong><span style="text-decoration: underline;">initial rowID is passed again to server</span></strong>. It looks like this command does not chage rowID. How to force jqGrid to pass correct rowID on second save?</p>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 21:24:16 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on How to update row id after editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23390</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23390</guid>
        	        	<description><![CDATA[<p>Thank you.</p>
<p>row ids are &#160;created from all primary key columns and urlencoded to remove characters not allowed in row ids.</p>
<p>Which event should be used to replace row id&#160;?</p>
<p>How to find previous and new row id values for replace ?</p>
<p>Andrus.</p>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 13:50:48 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on How to update row id after editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23383</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23383</guid>
        	        	<description><![CDATA[<p>See <a href="http://stackoverflow.com/questions/6170325/jqgrid-how-to-update-row-id-if-primary-key-columns-was-edited/6170380#6170380" target="_blank">here</a> the answer.</p>
]]></description>
        	        	<pubDate>Mon, 30 May 2011 10:59:50 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on How to update row id after editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23376</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-update-row-id-after-editing#p23376</guid>
        	        	<description><![CDATA[<p>Primary key values are used as row ids in json data returned from server.<br />If primary key value is edited and saved two times, second save causes error since jqGrid<br />passes original primary key value again to edit method.</p>
<p>How to update jqGrid row id to new primary key value if primary key value is changed in inline editing ?</p>
<p>$(function () {</p>
<p>var grid = $("#grid");</p>
<p>grid.jqGrid({</p>
<p>url: &#39;&#60;%= ResolveUrl("~/Grid/GetData?_entity=Strings")%&#62;&#39;,</p>
<p>datatype: "json",</p>
<p>mtype: &#39;POST&#39;,</p>
<p>scroll: 1,</p>
<p>autoencode: true,</p>
<p>colModel: [</p>
<p>{ name: &#39;Source&#39;, fixed: true, editable: true, width: 30 },</p>
<p>{ name: &#39;Est&#39;, fixed: true, editable: true, width: 271 }, // this is primary key passed also as id</p>
<p>{ name: &#39;Eng&#39;, fixed: true, editable: true, width: 167 }</p>
<p>],</p>
<p>gridview: true,</p>
<p>pager: &#39;#pager&#39;,</p>
<p>viewrecords: true,</p>
<p>editurl: &#39;&#60;%= ResolveUrl("~/Grid/Edit?_entity=Strings")%&#62;&#39;,</p></p>
]]></description>
        	        	<pubDate>Sun, 29 May 2011 23:40:52 +0300</pubDate>
        </item>
</channel>
</rss>