<?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: Cancel cellEdit in beforeEditCell event...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event</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/cancel-celledit-in-beforeeditcell-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nvraman83 on Cancel cellEdit in beforeEditCell event...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18980</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18980</guid>
        	        	<description><![CDATA[<p>You can also try restoreCell instead of saveCell...</p>
]]></description>
        	        	<pubDate>Thu, 05 Aug 2010 13:43:05 +0300</pubDate>
        </item>
        <item>
        	<title>Toadcop on Cancel cellEdit in beforeEditCell event...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18978</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18978</guid>
        	        	<description><![CDATA[<p>unfortunaly this doesnt work. in my case for some weird reason saveCell does fail at all (crash the thread kind a...)</p>
<p>but yes it&#39;s logical but doesnt work...</p>
]]></description>
        	        	<pubDate>Thu, 05 Aug 2010 13:40:55 +0300</pubDate>
        </item>
        <item>
        	<title>nvraman83 on Cancel cellEdit in beforeEditCell event...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18501</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18501</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>There is a workaround for what you want.</p>
</p>
<p>Use the beforeCellEdit method to accomplish the requirement.</p>
</p>
<p>Implement this inside beforeCellEdit event of your jQgrid</p>
<p>Step1: Declare two variables, lastiRow&#160;&#38; lastiCol</p>
<p>Step 2: use the saveCell method and save the old cell:&#160;</p>
<p>jQuery("#gridId").saveCell(lastiRow, lastiCol);</p>
<p>Step2: assign the current iRow and iCol to lastiRow and lastICol</p>
<p>lastiCol=iCol;			lastiRow=iRow;</p>
</p>
<p>So, whenever a cell is edited, we are saving the previously edited cell. &#160;</p>
</p>
<p>Hope this helps</p>
</p>
<p>Thanks,</p>
<p>Venkat&#160;</p></p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 08:50:10 +0300</pubDate>
        </item>
        <item>
        	<title>glittle on Cancel cellEdit in beforeEditCell event...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18496</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p18496</guid>
        	        	<description><![CDATA[<p>I would also like this.</p>
<p>I need to be able to cancel a cell edit event...&#160; if one cell is being editted, then another is clicked, I have to save the first one and abort the second one... I can&#39;t let the 2nd cell go into edit mode while the first one is still saving, since the the 2nd cell may be changed in the 1st cell&#39;s save event.</p>
<p>So, I just need to be able to return false in one of the cell edit events that happen when a cell is clicked on.</p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 04:23:14 +0300</pubDate>
        </item>
        <item>
        	<title>nvraman83 on Cancel cellEdit in beforeEditCell event...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p14540</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-celledit-in-beforeeditcell-event#p14540</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have a scenario like, on click of a cell, based on some condition I should make the cell editable or non editable.</p>
<p>Is there any way I can do this?</p>
</p>
<p>Thanks,</p>
<p>Venkat</p>
]]></description>
        	        	<pubDate>Thu, 04 Feb 2010 08:03:23 +0200</pubDate>
        </item>
</channel>
</rss>