<?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: Getting the unique ID for a row when inline editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-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/getting-the-unique-id-for-a-row-when-inline-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3870</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3870</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I do not understand right what is used - inline editing or cell editing? Both are diffrent things.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Jan 2009 08:04:36 +0200</pubDate>
        </item>
        <item>
        	<title>pkinsman on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3839</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3839</guid>
        	        	<description><![CDATA[<p>Thanks again. &#160;I actually tried this a while ago but couldn&#39;t get it to work. Now that I see it&#39;s working for you I&#39;ll give it another shot! &#160;</p>
]]></description>
        	        	<pubDate>Tue, 06 Jan 2009 09:27:32 +0200</pubDate>
        </item>
        <item>
        	<title>geek on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3831</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3831</guid>
        	        	<description><![CDATA[<p>The rowID is the real ID.&#160; When setting up your grid you specify what the ID is.&#160; In my case, I am using an xmlReader which looks like this:</p>
<p>&#160;xmlReader: {<br />&#160;root: "DocumentElement",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; row: "Table1" ,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "DocumentElement&#62;currentpage",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "DocumentElement&#62;totalpages",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "DocumentElement&#62;totalrecords",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "guidBranch"&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />}</p>
</p>
<p>You can alternatively specify the ID by using the key property in your colModel definition like this:</p>
<p>colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;guidBranch&#39; ,index:&#39;guidBranch&#39;,&#160;key=true},<br />]</p>
</p>
<p>At this point, when any of the aforementioned events are fired (i.e. afterSaveCell)&#160; the rowID passed in this even is your "real" ID which is presumably your primary key.</p>
</p>
<p>Hopefully this helps, again 🙂</p>
]]></description>
        	        	<pubDate>Mon, 05 Jan 2009 15:10:01 +0200</pubDate>
        </item>
        <item>
        	<title>pkinsman on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3821</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3821</guid>
        	        	<description><![CDATA[<blockquote>
<p>geek said:</p>
<p>I am doing exactly this in my own implementation.&#160; I do not display the ID column at all.&#160; I simply reference the rowid provided to tell me the ID corresponding to the data I am saving/deleting.</p>
</blockquote>
<hr />
<p>Hmmm actually I don&#39;t get it. &#160;How are you using the rowid to get the real ID? &#160;Maybe you can post an example? &#160;<img class="spSmiley" style="margin:0" title="Wink" src="http://www.trirand.com/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-wink.gif" border="0" alt="Wink" /></p></p>
]]></description>
        	        	<pubDate>Mon, 05 Jan 2009 09:57:57 +0200</pubDate>
        </item>
        <item>
        	<title>pkinsman on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3771</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3771</guid>
        	        	<description><![CDATA[<p>Thanks so much for your quick reply! &#160;I will give this a shot.<img class="spSmiley" style="margin:0" title="Smile" src="http://www.trirand.com/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-smile.gif" border="0" alt="Smile" />&#160;&#160;</p>
]]></description>
        	        	<pubDate>Wed, 31 Dec 2008 13:39:26 +0200</pubDate>
        </item>
        <item>
        	<title>geek on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3770</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3770</guid>
        	        	<description><![CDATA[<p>When using inline editing you can add handlers for any of events listed in the documentation (Cell Editing -&#62; Events) (<a href="http://www.secondpersonplural.ca/jqgriddocs/index.htm" target="_blank"><a href="http://www.secondpersonplural" rel="nofollow">http://www.secondpersonplural</a>....../index.htm</a>)</p>
<p>Nearly all of these events provide the following to your handler:</p>
<li>rowid - is the rowid (this is the unique row id you are referring to)</li>
<li>cellname is the name of the cell (name from colModel)</li>
<li>value - the value of the cell</li>
<li>iRow - the index of the row (do not mix with rowid)</li>
<li>iCol - the index of the column</li>
<p>I am doing exactly this in my own implementation.&#160; I do not display the ID column at all.&#160; I simply reference the rowid provided to tell me the ID corresponding to the data I am saving/deleting.</p>
</p>
<p>Hope this helps!</p>
]]></description>
        	        	<pubDate>Wed, 31 Dec 2008 13:17:54 +0200</pubDate>
        </item>
        <item>
        	<title>pkinsman on Getting the unique ID for a row when inline editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3768</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-the-unique-id-for-a-row-when-inline-editing#p3768</guid>
        	        	<description><![CDATA[<p>I have searched the forums and have not been able to find an answer to this question, even though I am sure I am not the first to encounter this issue.</p>
<p>I noticed that you have to set each field as "editable" in order to have jqGrid post the value back to the server. &#160;So, I have the make the primary key editable in order to make inline editing work, so I know which record to update on the server side.</p>
<p>I was OK with this, but then they asked me to add a delete feature. &#160;I have noticed that the value of editable text fields comes back looking something like "&#60;input class="editable" name="ftevalue" id="1_ftevalue" style="width: 99%;" type="text"&#62;". &#160;If you make the field non-editable, you get back the actual value of the field.</p>
<p>So, if I make the ID field non-editable, the delete feature works (because the value will come back properly), but now my inline editing is broken!</p>
<p>Please help!</p></p>
]]></description>
        	        	<pubDate>Wed, 31 Dec 2008 12:51:43 +0200</pubDate>
        </item>
</channel>
</rss>