<?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: Load Grid only on Demand</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand</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/load-grid-only-on-demand/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Load Grid only on Demand</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p30976</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p30976</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>It depends which serch you use. See the events in the appropriate search module in the docs.</p>
<p>You will find a event before serching and event after serching which is maybe your solution - i.e befre search set the data type to json and after search set it again to local.</p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 20 Aug 2014 13:06:21 +0300</pubDate>
        </item>
        <item>
        	<title>Saali on Load Grid only on Demand</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p30966</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p30966</guid>
        	        	<description><![CDATA[<blockquote>
<p><strong>OlegK said </strong><br />
Hello!</p>
<p> One of the easiest way to control when the grid contain will be loaded is to switch the <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:options" target="_blank">datatype</a> of the jqGrid. You can start with the <strong>datatype:'local'</strong>, then jqGrid will be not loaded and some parameters like <strong>url</strong> or <strong>postData</strong> will not be used. Inside of <strong>click</strong>Â event handler Â for your "Search" button you can change the datatypeÂ </p>
<p><input type='button' class='sfcodeselect' name='sfselectit6327' value='Select Code' data-codeid='sfcode6327' /></p>
<div class='sfcode' id='sfcode6327'>$(&#34;#list&#34;).setGridParam({datatype:'json'}).trigger('reloadGrid',[{page:1}]);</div>
<p> <span style="font-size: 13.8889px">I recommend you to invest some time to understand how the parameters of the ajax request will be built which will be send to the server. ReadÂ for exampleÂ <a href="http://stackoverflow.com/questions/3527617/get-current-url-including-parameters-of-jqgrid/3530191#3530191" target="_blank">this</a>Â and <a href="http://stackoverflow.com/questions/3885658/jqgrid-data-stored-in-browser-cache/3885956#3885956" target="_blank">this</a>Â my old answers on the stackoverflow.com.</span></p>
<p> Look at <a href="http://stackoverflow.com/questions/2928371/how-to-filter-the-jqgrid-data-not-using-the-built-in-search-filter-box/2928819#2928819" target="_blank">here</a>Â andÂ <a href="http://stackoverflow.com/questions/3807623/jqgrid-paging-question/3808014#3808014" target="_blank">here</a>Â for some additional informations. In the <a href="http://stackoverflow.com/questions/3974324/jqgrid-using-multiple-methods-to-filter-data/3979490#3979490" target="_blank">another answer</a>Â I showed how one can use the standard parameters from the <strong>postData</strong> used by jqGrid for the <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:advanced_searching" target="_blank">Advanced Searching</a>.</p>
<p> Best regards<br />
 OlegÂ </p>
</blockquote>
<p>Hey OlegK,</p>
<p>Similar to this query, I want the jqGrid to be empty when the page loads and I want to load data only when any data is searched (some of the columns in the grid are searchable). Any ideas? I'm asking because I dont know how to use Â </p>
<p><input type='button' class='sfcodeselect' name='sfselectit5931' value='Select Code' data-codeid='sfcode5931' /></p>
<div class='sfcode' id='sfcode5931'>$("#list").setGridParam({datatype:'json'}).trigger('reloadGrid',[{page:1}]);</div>
<p> explicitly for a search function of the jqgrid.</p>
]]></description>
        	        	<pubDate>Tue, 19 Aug 2014 09:48:31 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Load Grid only on Demand</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p20405</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p20405</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>One of the easiest way to control when the grid contain will be loaded is to switch the <a href="/jqgridwiki/doku.php?id=wiki:options" target="_blank">datatype</a> of the jqGrid. You can start with the <strong>datatype:&#39;local&#39;</strong>, then jqGrid will be not loaded and some parameters like <strong>url</strong> or <strong>postData</strong> will not be used. Inside of <strong>click</strong>&#160;event handler &#160;for your "Search" button you can change the datatype&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit944' value='Select Code' data-codeid='sfcode944' /></p>
<div class='sfcode' id='sfcode944'>$(&#34;#list&#34;).setGridParam({datatype:&#39;json&#39;}).trigger(&#39;reloadGrid&#39;,[{page:1}]);</div>
<p><span style="font-size: 13.8889px;">I recommend you to invest some time to understand how the parameters of the ajax request will be built which will be send to the server. Read&#160;for example&#160;<a href="http://stackoverflow.com/questions/3527617/get-current-url-including-parameters-of-jqgrid/3530191#3530191" target="_blank">this</a>&#160;and <a href="http://stackoverflow.com/questions/3885658/jqgrid-data-stored-in-browser-cache/3885956#3885956" target="_blank">this</a>&#160;my old answers on the stackoverflow.com.</span></p>
<p>Look at <a href="http://stackoverflow.com/questions/2928371/how-to-filter-the-jqgrid-data-not-using-the-built-in-search-filter-box/2928819#2928819" target="_blank">here</a>&#160;and&#160;<a href="http://stackoverflow.com/questions/3807623/jqgrid-paging-question/3808014#3808014" target="_blank">here</a>&#160;for some additional informations. In the <a href="http://stackoverflow.com/questions/3974324/jqgrid-using-multiple-methods-to-filter-data/3979490#3979490" target="_blank">another answer</a>&#160;I showed how one can use the standard parameters from the <strong>postData</strong> used by jqGrid for the <a href="/jqgridwiki/doku.php?id=wiki:advanced_searching" target="_blank">Advanced Searching</a>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 21 Oct 2010 17:01:08 +0300</pubDate>
        </item>
        <item>
        	<title>nmganesh on Load Grid only on Demand</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p20388</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/load-grid-only-on-demand#p20388</guid>
        	        	<description><![CDATA[<p>Hi, I am new to JqGrid and Jqurey as well. When I tried the examples, all of them load the grid when the page loads.</p>
<p>My requirement is I don&#39;t want the Grid to be loaded when the page is loaded.</p>
</p>
<p>I will have a Search button and the Grid needs to be loaded only when I click on that button.</p>
<p>But I need the Grid to be shown(with no data) obviously when the page loads.</p>
</p>
<p>Could anyone help me out on thsi please?</p>
]]></description>
        	        	<pubDate>Thu, 21 Oct 2010 00:00:52 +0300</pubDate>
        </item>
</channel>
</rss>