<?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: Modal Dialog for Edit Record not cleared with GridUnload</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload</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/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Modal Dialog for Edit Record not cleared with GridUnload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3927</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3927</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Check the 3.4 beta if all goes ok when grid is unloading.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 12 Jan 2009 09:41:13 +0200</pubDate>
        </item>
        <item>
        	<title>Renso on Modal Dialog for Edit Record not cleared with GridUnload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3915</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3915</guid>
        	        	<description><![CDATA[<p>Thanks heaps Tony, yes you are right more than just the one edit form&#160; needs to be removed, for example both &#39;#editmodLookupList&#39; and &#39;#colmodLookupList&#39; needs to be removed that I know of.</p>
]]></description>
        	        	<pubDate>Fri, 09 Jan 2009 14:19:48 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Modal Dialog for Edit Record not cleared with GridUnload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3890</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3890</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks.</p>
<p>The upcomming release removes (GridUnload) the editforms if they are present.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Jan 2009 10:10:35 +0200</pubDate>
        </item>
        <item>
        	<title>Renso on Modal Dialog for Edit Record not cleared with GridUnload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3886</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-dialog-for-edit-record-not-cleared-with-gridunload#p3886</guid>
        	        	<description><![CDATA[<p>When needing to unload the grid, in my case because I override the colModel and colNames on the fly when the user selects to see a different table&#39;s data in the same jqGrid (I do this wil $.extend()), and you try to edit a record with the normal modal dialog, it does not change after the unload and a new jqGrid has been loaded, it keeps the modal dialog for editing of the first loaded jqGrid you tried to edit.</p>
<p>The solution is to remove the modal dialog after every unload:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2728' value='Select Code' data-codeid='sfcode2728' /></p>
<div class='sfcode' id='sfcode2728'>
<p>$(item).GridUnload();</p>
<p><span style="color: #ff0000;">$(&#39;#editmodLookupList&#39;).remove();</span></p>
</div>
<p>//FYI - Here I reload my jqGrid</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2748' value='Select Code' data-codeid='sfcode2748' /></p>
<div class='sfcode' id='sfcode2748'>$(item).jqGrid($.extend(GetjqGridDefaultListOfLookupData(item, listURL, editURL, hideGrid, postData),customData&#124;&#124;{}))<br />.navGrid(item+&#39;Pager&#39;, {refresh: true, edit: true, add: true, del: false, search: false});</div>
<p>In case you are wondering, the reason I do all of this is because I use on jqGrid for all my lookup/reference tables as most of them have the same columns. I need to unload in stead of just calling trigger(&#39;reloadGrid&#39;) because the columns change.</p>
]]></description>
        	        	<pubDate>Thu, 08 Jan 2009 09:58:38 +0200</pubDate>
        </item>
</channel>
</rss>