<?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: Automatically save cell edit on blur</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/automatically-save-cell-edit-on-blur</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/discussion/automatically-save-cell-edit-on-blur/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>aliix on Automatically save cell edit on blur</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/automatically-save-cell-edit-on-blur#p19032</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/automatically-save-cell-edit-on-blur#p19032</guid>
        	        	<description><![CDATA[<p>I don&#39;t want a save button or to wait until someone clicks tab.&#160; If anyone clicks anywhere outside of the field they are editing, I want the changes to be persisted.</p>
<p>I&#39;ve tried this:</p>
</p>
<p>&#160;// Save on edit field focus lost<br />&#160;&#160;&#160; $(&#39;#contacts&#39;).setGridParam({afterEditCell: function(id,name,val,iRow,iCol){<br />&#160;&#160;&#160;&#160;&#160; //Modify event handler to save on blur.<br />&#160;&#160;&#160;&#160;&#160; $("#"+iRow+"_"+name).bind(&#39;blur&#39;,function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#contacts&#39;).saveCell(iRow,iCol);<br />&#160;&#160;&#160;&#160;&#160; })<br />&#160;&#160;&#160;&#160; }</p>
<p>But this causes all sorts of problems with double saving and fields not closing.</p>
<p>Is there a good way to do this?</p>
</p>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Tue, 10 Aug 2010 05:59:12 +0300</pubDate>
        </item>
</channel>
</rss>