<?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: searchGrid afterSearch fucntion</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/searchgrid-aftersearch-fucntion</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/searchgrid-aftersearch-fucntion/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jojo on searchGrid afterSearch fucntion</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/searchgrid-aftersearch-fucntion#p29752</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/searchgrid-aftersearch-fucntion#p29752</guid>
        	        	<description><![CDATA[<p>Is there a fucntion that fires after the search (multi)?</p>
<p>I&#39;m trying to customise the Displaying x of nn total record.</p>
<p>I see the <strong>onSearch </strong>and the <strong>onClose </strong>function (<a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:singe_searching#options" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ng#options</a>).</p>
</p>
<p><strong>onSearch </strong>fires when the Find button is (before the actual search)</p>
<p><strong>onClose </strong>fires when the dialog closes by pressing the close button. It does not fire if the search is closed by clicking on the overlay (gray layer covering the page).</p>
</p>
<p>PSUEDO CODE</p>
<p>&#160;myGrid = $("#dataTablePSV");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid.jqGrid({</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "local",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 602,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; .... define columns and data...</p>
<p>});</p>
</p>
<p>$("#buttonGridSearch").click(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid.searchGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sopt: [&#39;bw&#39;, &#39;eq&#39;, &#39;cn&#39;, &#39;ew&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onClose: function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; RecordCountControl_showRecordCount("#RecordCountControl", myGrid.getGridParam("reccount"), myData.length, "", &#39;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return true;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p>&#160;function RecordCountControl_showRecordCount(arguments)</p>
<p>{</p>
<p>&#160;&#160; --- change RecordCountControl display count --<br />}</p>
<p>&#60; PSUEDO HTML&#62;</p>
<p>&#60;p id="RecordCountControl"&#62;Displaying 0 of 0 records.&#60;/p&#62;</p>
<p>&#60;table id="dataTablePSV"&#62;<br />&#160;&#160; &#60;/table&#62;</p>
<p>&#60;div class="gridButton"&#62;&#60;input type="submit" name="buttonGridSearch" value="Search" id="buttonGridSearch"&#160; /&#62;&#60;/div&#62;</p>
</p>
<p>Thanks,</p>
<p>Jordan</p>
]]></description>
        	        	<pubDate>Thu, 24 Oct 2013 18:39:09 +0300</pubDate>
        </item>
</channel>
</rss>