<?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: add beforeRefresh callback to Navigator</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-beforerefresh-callback-to-navigator</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/add-beforerefresh-callback-to-navigator/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on add beforeRefresh callback to Navigator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-beforerefresh-callback-to-navigator#p14457</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-beforerefresh-callback-to-navigator#p14457</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks Klaus - added:</p>
<p><a href="http://github.com/tonytomov/jqGrid/commit/cb34d789f9162951ddd9f52e1cb9605bb6dd816b" rel="nofollow" target="_blank"><a href="http://github.com/tonytomov/jq" rel="nofollow">http://github.com/tonytomov/jq</a>.....5bb6dd816b</a></p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 10:26:51 +0200</pubDate>
        </item>
        <item>
        	<title>Klaus on add beforeRefresh callback to Navigator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-beforerefresh-callback-to-navigator#p14400</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-beforerefresh-callback-to-navigator#p14400</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>is it possible to add a "beforeRefresh" callback to the navigator "refresh" default button?<br />... analog to the afterRefresh callback that is called after the table was reloaded.</p>
<p>I need this callback to modify the reload grid post parameters specific when this button is pressed by the user.<br />so this beforeRefresh callback should be called immediately when the click is processed.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6958' value='Select Code' data-codeid='sfcode6958' /></p>
<div class='sfcode' id='sfcode6958'>navGrid : function (elem, o, pEdit,pAdd,pDel,pSearch, pView) {<br />&#160; o = $.extend({<br />&#160; ...<br />&#160; <strong>beforeRefresh : null,</strong><br />&#160; afterRefresh : null<br />...<br />...<br />if (o.refresh) {<br />&#160; ...<br />&#160; .attr({&#34;title&#34;:o.refreshtitle&#160; &#124;&#124; &#34;&#34;,id: &#34;refresh_&#34;+$t.p.id})<br />&#160; .click(function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>if($.isFunction(o.beforeRefresh)) o.beforeRefresh();</strong><br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; $t.p.search = false;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; try {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; var gID = $t.p.id;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $(&#34;#fbox_&#34;+gID).searchFilter().reset();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $t.clearToolbar(false);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; } catch (e) {}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; switch (o.refreshstate) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; case &#39;firstpage&#39;:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; $($t).trigger(&#34;reloadGrid&#34;, [{page:1}]);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; break;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; case &#39;current&#39;:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; $($t).trigger(&#34;reloadGrid&#34;, [{current:true}]);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; break;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; if($.isFunction(o.afterRefresh)) o.afterRefresh();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; return false;<br />&#160;&#160; &#160; })<br />&#160; ...</div>
</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Fri, 29 Jan 2010 14:16:22 +0200</pubDate>
        </item>
</channel>
</rss>