<?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: Display Grid but don't load data</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/display-grid-but-dont-load-data-1</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/feature-request/display-grid-but-dont-load-data-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Display Grid but don't load data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/display-grid-but-dont-load-data-1#p5476</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/display-grid-but-dont-load-data-1#p5476</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>$("#mygrid").jqGrid({</p>
<p>...</p>
<p>url: "myurl.php"</p>
<p>datatype: "local",</p>
<p>...</p>
<p>});</p>
</p>
<p>$("#mybutton").click(function(){</p>
<p>$("#mygrid").setGridParam({datatype:&#39;json&#39;}).trigger("reloadGrid");</p>
<p>});</p>
</p>
<p>Hope this help</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 21 Mar 2009 10:17:40 +0200</pubDate>
        </item>
        <item>
        	<title>snorkel on Display Grid but don't load data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/display-grid-but-dont-load-data-1#p5466</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/display-grid-but-dont-load-data-1#p5466</guid>
        	        	<description><![CDATA[<p>Currently this is doable with some restrictions, for one you have to have a caption and you have to display the show/hide button.&#160; for me these restrictions are not usable as I don&#39;t want to display a caption or the button.</p>
<p>The ideal way to do this would be to allow a blank URL so the grid shows with no data, then when you need to load data, for instance on a tab click you could check if the URL is blank, then do something like this:</p>
<p>$("#togrid").setGridParam({url:&#39;/user/get_data?nd=&#39;+new Date().getTime()+&#39;&#38;dir=TO&#38;coid=${c.coid}&#39;}).trigger("reloadGrid");</p>
<p>I can sort of do this now, but when given a blank URL the grid tries to generate one from the last GET query and this is not idea as it still tries to grab data.</p>
<p>Would it be possible to do this?&#160; i.e. allow the grid to have a blank URL and if it is blank don&#39;t try to load data?</p>
]]></description>
        	        	<pubDate>Fri, 20 Mar 2009 10:40:04 +0200</pubDate>
        </item>
</channel>
</rss>