<?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: Exit edit mode programmatically</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically</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/exit-edit-mode-programmatically/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Exit edit mode programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p16659</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p16659</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This depends on which module you are. For inline or celledit you can set the url to &#39;clientArray&#39;. Intead this is not true for form edit mode. We will make some thinds in next release for this.</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 11:47:58 +0300</pubDate>
        </item>
        <item>
        	<title>olegkn on Exit edit mode programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p16540</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p16540</guid>
        	        	<description><![CDATA[<p>How to exit from edit mode manually, if datatype is "local"?</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 18:10:44 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Exit edit mode programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p13246</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p13246</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Another solution is to point to a dummy existing editurl&#160; and then use getRowData after the contend is saved - use the appropriate event for this purpose.</p>
<p>In this case you should post the data manually with your own function.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 10:00:46 +0200</pubDate>
        </item>
        <item>
        	<title>taoufik on Exit edit mode programmatically</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p13209</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exit-edit-mode-programmatically#p13209</guid>
        	        	<description><![CDATA[<p>I have a grid where the user can change certain values inline, and the user can click on the save button, which will use <strong>getRowData</strong> to get the data out of the grid, and then post it to the server.</p>
</p>
<p>I know <strong>getRowData </strong>returns the cell content, which in edit mode, is the actual html control. Therefore, I&#39;d like to get out of the edit mode (in case the grid is in edit mode), before using the <strong>getRowData</strong> method to get the actual data. However, there doesn&#39;t seem to be a cancelEditCell method or something similar.</p>
</p>
<p>The code I came up with is far from perfect, as it moves the focus to the first field in the grid:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // reset editing<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; table.jqGrid("editCell", 0, 0, false);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ids = table.getDataIDs();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var allocationsMap = $(ids).map(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var realPortfolioId = parseInt(this);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return { RealPortfolioId: realPortfolioId, ChangeInQuantity: table.getRowData(realPortfolioId).ChangeInQuantity };<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>Any other better idea&#39;s?</p>
]]></description>
        	        	<pubDate>Mon, 21 Dec 2009 14:19:26 +0200</pubDate>
        </item>
</channel>
</rss>