<?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: GridDestroy - GridUnload</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/griddestroy-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/help/griddestroy-gridunload/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>vladimir77 on GridDestroy - GridUnload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/griddestroy-gridunload#p22515</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/griddestroy-gridunload#p22515</guid>
        	        	<description><![CDATA[<p>Hi! Likely you downloaded cut version of plugin - you should check &#39;Additional methods&#39; when do it (see <a href="/blog/?page_id=6" target="_blank">jQuery Grid Plugin Download</a>).</p>
]]></description>
        	        	<pubDate>Tue, 22 Mar 2011 19:28:56 +0200</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on GridDestroy - GridUnload</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/griddestroy-gridunload#p20011</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/griddestroy-gridunload#p20011</guid>
        	        	<description><![CDATA[<p>Ok, I must be doing something fundamentally wrong.&#160; I am trying to get either GridDestroy or GridUnload to work.&#160; I have a grid that has been previously loaded with data.&#160; On the screen, I have a &#39;button&#39; that is supposed to clear the grid.&#160; I have tried each method two different ways:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2519' value='Select Code' data-codeid='sfcode2519' /></p>
<div class='sfcode' id='sfcode2519'>$(&#39;#jqGrid_table_id&#39;).jqGrid(&#39;GridDestroy&#39;);</div>
<p>and</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7628' value='Select Code' data-codeid='sfcode7628' /></p>
<div class='sfcode' id='sfcode7628'>$(&#39;#jqGrid_table_id&#39;).GridDestroy();</div>
</p>
<p>But niether one works.&#160; I am watching my firebug output.&#160; But my grid data and build remains after I click on my button.</p>
</p>
<p>Here is my code, most of the actions are commented out cuz I am having problems getting the grid data to clear or be destroyed:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7570' value='Select Code' data-codeid='sfcode7570' /></p>
<div class='sfcode' id='sfcode7570'>$(&#34;#riot&#34;).click( function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;// var munitionType = jQuery(&#39;#searchResults&#39;).jqGrid(&#39;getGridParam&#39;,&#39;xmlReader:row&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;// if (jQuery(&#39;#searchResults&#39;).children().length &#62; 0) {&#160;&#160;&#160; grid already built<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// if (munitionType == &#39;chem&#39;) {&#160; // checks for correct munitions group xml file loaded<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// jQuery(&#34;#searchResults&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#34;weaponLib/chem_riot.xml&#34;}).trigger(&#34;reloadGrid&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// alert(&#39;grid loaded but wrong munitions group xml loaded&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#searchResults&#39;).GridDestroy();&#160; // destroys the grid<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//jQuery(&#34;#searchResults&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#34;weaponLib/chem_riot.xml&#34;}).trigger(&#34;reloadGrid&#34;);*/<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// }<br />&#160;&#160; &#160;&#160;&#160; &#160;// else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// alert(&#34;grid not built&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//build a brand new grid from scratch<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// }<br />&#160;&#160; &#160;&#160;&#160; &#160;});</div>
<p>Any suggestions would be helpful.<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 27 Sep 2010 06:50:03 +0300</pubDate>
        </item>
</channel>
</rss>