<?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: How to disable save button while the saving process is occuring</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-save-button-while-the-saving-process-is-occuring</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/how-to-disable-save-button-while-the-saving-process-is-occuring/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jstuardo on How to disable save button while the saving process is occuring</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-disable-save-button-while-the-saving-process-is-occuring#p30034</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-disable-save-button-while-the-saving-process-is-occuring#p30034</guid>
        	        	<description><![CDATA[<p>Hello&#8230; I implemented jqgrid in my site, but I am having the problem that a user sometimes presses the save button twice or more times before the dialog is closed, causing the record to be added several times.</p>
<p>To solve it. I am trying to disable the button. It works, but the form is not closed after the actual saving.</p>
<p>I have this in the jqgrid options:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeSubmit: function(postdata, formid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#sData&#39;).attr(&#39;disabled&#39;, &#39;disabled&#39;).addClass(&#39;ui-state-disabled&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return[true, &#39;&#39;];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>As I said, the button is actually disabled, but the dialog is not closed after saving the record. Even worst, since the dialog remains opened, user can click save button again. If after that second click, user does not click the button again, the dialog is closed.</p>
<p>Any help to solve this will be appreciated</p>
<p>Thanks</p>
<p>Jaime</p>
]]></description>
        	        	<pubDate>Thu, 02 Jan 2014 15:45:28 +0200</pubDate>
        </item>
</channel>
</rss>