<?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: BeforeDataRequest event</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/beforedatarequest-event</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/beforedatarequest-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>deadlyDev on BeforeDataRequest event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/beforedatarequest-event#p20824</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/beforedatarequest-event#p20824</guid>
        	        	<description><![CDATA[<p>First off thanks for the AWESOME control!</p>
</p>
<p>I would like to see an event added that gets called before populate makes the call to the server (ie. just before the .ajax call).</p>
<p>This would enable easy setup of caching, modification of parameters or even customization of urls according to query parameters. I manually added code to do this to the grid base js, and now have really nice caching of previously requested pages :)... I think this would be usefull for a lot of different applications.&#160;</p>
<p>My beforeDataRequest method takes 3 parameters: url, arguments, callback</p>
</p>
<p>url -&#62; The url of the server call</p>
<p>arguments -&#62; The arguments being passed to the server.</p>
<p>callback -&#62; The success callback.</p>
</p>
<p>If the method returns true, the ajax call is performed, if false it is not. This has meant I am able to catch server queries and check if I have already received the page... If I have a retrieve the data from the cache and call the supplied callback... Nice and fast 🙂</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 12:07:19 +0200</pubDate>
        </item>
</channel>
</rss>