<?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: Delete form dont close automaticly</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/delete-form-dont-close-automaticly</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/delete-form-dont-close-automaticly/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Buga on Delete form dont close automaticly</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/delete-form-dont-close-automaticly#p8786</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/delete-form-dont-close-automaticly#p8786</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>I want to add a msg to my grid after I deleted a row. I have this message already for add/edit and it works like expected.</p>
<p>I&#160;call in the Navgrid a function with&#160; <span style="font-size: x-small;">afterSubmit:commonSubmitServer</span></p>
<p><span style="font-size: x-small;">This works fine but for the delete function it has the side effect that the confirmation windo for delete dont close anymore.</span></p>
</p>
<p><span style="font-size: x-small;">here is the example code:</span></p>
<p><span style="font-size: x-small;"><span style="font-size: x-small;"></span></span></p>
<p align="left">$(</p>
</p>
<p align="left"><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;#Account_Verwaltung_Server&#8221;</span></span><span style="font-size: x-small;">).navGrid( </span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;#Account_Verwaltung_Server_Pager&#8221;</span></span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{</span></span><span style="font-size: x-small;">edit:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,edittext:m_gridedit,edittitle:m_grideditrow,add:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,addtext:m_gridadd,addtitle:m_gridaddrow,deltext:m_griddelete,del:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,deltitle:m_griddeleterow,search:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">false</span></span><span style="font-size: x-small;">,refresh:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">false}</span></span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//We will specify custom search/refresh buttons&#160;<br /></span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{</span></span><span style="font-size: x-small;">reloadAfterSubmit:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,afterSubmit:commonSubmitServer,closeAfterEdit:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,width:</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;400&#8243;</span></span><span style="font-size: x-small;">,height:</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;300&#8243;</span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">}</span></span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//Options for the Edit Dialog&#160;<br /></span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{</span></span><span style="font-size: x-small;">reloadAfterSubmit:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,afterSubmit:commonSubmitServer,closeAfterAdd:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,width:</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;400&#8243;</span></span><span style="font-size: x-small;">,height:</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;300&#8243;</span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">}</span></span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//Options for the Add Dialog&#160;<br /></span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{</span></span><span style="font-size: x-small;">url:</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;/includes/components/Account.cfc?method=delServer&#8221;</span></span><span style="font-size: x-small;">,reloadAftersubmit:</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">true</span></span><span style="font-size: x-small;">,afterSubmit:commonSubmitServer,caption:m_griddeleteserver,msg:m_griddeleteselectedserver,width:</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;400&#8243;</span></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">}</span></span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//Options for Del Dialog <br /></span></span><span style="font-size: x-small;">)</span></p>
<p align="left">
<p align="left">
<p align="left">
</p>
<p align="left"><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">function </span></span><span style="font-size: x-small;">commonSubmitServer(data,params)</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">{<br />var <br /></span></span><span style="font-size: x-small;">a = eval( </span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;(&#8221; </span></span><span style="font-size: x-small;">+ data.responseText + </span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;)&#8221; </span></span><span style="font-size: x-small;">);<br /></span><span style="font-size: x-small; color: #3f5fbf;"><span style="font-size: x-small; color: #3f5fbf;">//Convert returned string into JSON<br /></span></span><span style="font-size: x-small;">$(</span><span style="font-size: x-small; color: #8e00ff;"><span style="font-size: x-small; color: #8e00ff;">&#8220;#t_Account_Verwaltung_Server&#8221;</span></span><span style="font-size: x-small;">).html(a.SERVERDATA.MSG); <br /></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">return true</span></span><span style="font-size: x-small;">;<br /></span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">} </span></span></p>
</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p></p>
]]></description>
        	        	<pubDate>Wed, 19 Aug 2009 06:03:26 +0300</pubDate>
        </item>
</channel>
</rss>