<?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: Get Cell Index in Cell Edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit</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/get-cell-index-in-cell-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Get Cell Index in Cell Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16664</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16664</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>One possible solution is to use the serializeCellData you can do it like this</p>
<p><input type='button' class='sfcodeselect' name='sfselectit253' value='Select Code' data-codeid='sfcode253' /></p>
<div class='sfcode' id='sfcode253'>
<p>..jqGrid({</p>
<p>...</p>
<p>serializeCellData : function(postdata) {</p>
<p>var rowdata = $("#mygridid").getRowData(postdata.id);</p>
<p>postdata.Id = rowdata.Id;</p>
<p>// some other assigments to postdata array</p>
<p>return postdata;</p>
<p>},</p>
</div>
<p>2. You can use afterSubmitCell for this purpose. This event is called after the request is complete and we pass the response from server. So you can</p>
<p>return [true,""] or</p>
<p>return [false,"The error from server"]</p>
<p>in order to notify the user</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 12:15:35 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Get Cell Index in Cell Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16545</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16545</guid>
        	        	<description><![CDATA[<p>Somebody can help me?</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 19:47:30 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Get Cell Index in Cell Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16438</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16438</guid>
        	        	<description><![CDATA[<p>I&#39;ve been reading in detail and it seems that i might use this two events:</p>
</p>
<p>beforeSubmitCell</p>
<p>serializeCellData</p>
<p>would it mind if someone paste an example?</p>
</p>
<p>Thank you</p>
]]></description>
        	        	<pubDate>Thu, 15 Apr 2010 18:03:37 +0300</pubDate>
        </item>
        <item>
        	<title>sanchitos on Get Cell Index in Cell Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16422</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-cell-index-in-cell-edit#p16422</guid>
        	        	<description><![CDATA[<p>Hi guys, i was trying to do a Cell Editing based on this documentation /jqgridwiki/doku.php?id=wiki:cell_editing</p>
<p>I have two questions:</p>
<p>1. How can i get the Index of my row posted to the server:</p>
<p>The information i&#39;m getting posted is the following:</p>
<p>a) value of the cell</p>
<p>b) RowId</p>
</p>
<p>The thing is that the rowId doesn&#39;t help me. I need the actual Id of the information I&#39;m displaying so i can do the server update with that Id.&#160;</p>
<p>colNames: [&#39;Id&#39;, &#39;Codigo&#39;, &#39;Nombre&#39;],</p>
<p>colModel: [</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Id&#39;, index: &#39;Id&#39;, width: 50, align: &#39;left&#39;, hidden: true },</p>
<p><span style="white-space: pre;"> </span>&#160;&#160; &#160;{ name: &#39;Codigo&#39;, index: &#39;Codigo&#39;, width: 55, align: &#39;left&#39;, editable: true, editrules: { number: true} },</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;{ name: &#39;Nombre&#39;, index: &#39;Nombre&#39;, width: 200, align: &#39;left&#39; }</p>
<p>],</p>
<p>I need the value of the column &#39;Id&#39; to do my update.</p>
</p>
<p>2. I don&#39;t understand in the documentation how to manage an error from the server, so I can display the error message.</p>
</p>
<p>Thank you very much!</p>
]]></description>
        	        	<pubDate>Thu, 15 Apr 2010 03:58:44 +0300</pubDate>
        </item>
</channel>
</rss>