<?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 do i close edit form from within afterSubmit event handler function?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function</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-do-i-close-edit-form-from-within-aftersubmit-event-handler-function/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>nelsonm on How do i close edit form from within afterSubmit event handler function?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function#p27523</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function#p27523</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I wanted to make sure i was closing the form "properly &#8211; as in &#8211; not messing up other grids and forms".</p>
<p>However, i think you ment to write:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9999' value='Select Code' data-codeid='sfcode9999' /></p>
<div class='sfcode' id='sfcode9999'>$(&#34;#TblGrid_GRID_2&#160;#cData&#8243;).click();</div>
</p>
<p>which, according to the jQuery docs, the Descendant Selector (&#8220;ancestor descendant&#8221;), Selects all elements that are descendants of a given ancestor. Your method is the Multiple Selector (&#8220;selector1, selector2, selectorN&#8221;), which would trigger the click on all "#cData" ids as well as the "#TblGrid_GRID_2&#8243; id.</p>
<p>In any case, I got it, and the method works and avoids any other issues.</p>
<p>As always,&#160;thanks!</p>
]]></description>
        	        	<pubDate>Thu, 11 Oct 2012 19:22:05 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How do i close edit form from within afterSubmit event handler function?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function#p27508</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function#p27508</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>You can triger click to the cancel button.</p>
<p>If I remember right the cancel button has a id = cData</p>
<p>This is not good, since of multigrids with multi forms it will make problems with equal ids.</p>
<p>This should be changed in the future.</p>
</p>
<p>In order to overcome this &#8211; if the grid has id=GRID, then</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit942' value='Select Code' data-codeid='sfcode942' /></p>
<div class='sfcode' id='sfcode942'>
<p>$(&#34;#cData&#34;, &#34;#TblGrid_GRID_2&#8243;).click();</p>
</p>
</div>
<p>Another way is to trgger click to the close buton. See which calss it has to perform this.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 11 Oct 2012 17:14:43 +0300</pubDate>
        </item>
        <item>
        	<title>nelsonm on How do i close edit form from within afterSubmit event handler function?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function#p27507</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-do-i-close-edit-form-from-within-aftersubmit-event-handler-function#p27507</guid>
        	        	<description><![CDATA[<p>hi all,</p>
<p>How do i properly close the editform from within the "afterSubmit" event handler function?</p>
<p>After the user submits the edit form, I leave the edit form open to allow the user to use the prev and next buttons to edit other records. &#160;This is normally done by leaving the "closeAfterEdit" property false in the grid nav section.</p>
<p>However, in the "afterSubmit" event handler function, i want to properly close the edit form only if a condition is true.</p>
</p>
<p>thanks.</p></p>
]]></description>
        	        	<pubDate>Wed, 10 Oct 2012 21:55:56 +0300</pubDate>
        </item>
</channel>
</rss>