<?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: Custom form for search criteria</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-form-for-search-criteria</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/custom-form-for-search-criteria/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Lotte-Sara Laan on Custom form for search criteria</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-form-for-search-criteria#p9396</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-form-for-search-criteria#p9396</guid>
        	        	<description><![CDATA[<p>Instead of recreating your grid everytime, you can just create your grid without the extra search data on init of the page. Then when doing the search you can use these functions:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1923' value='Select Code' data-codeid='sfcode1923' /></p>
<div class='sfcode' id='sfcode1923'>$(&#39;#tbSearchResults<span style="color: #993300;"></span>&#39;).setGridParam({ postData:{ str }});<br />$(&#39;#tbSearchResults&#39;).trigger(&#39;reloadGrid&#39;);</div>
<p>I hope this answers your question.</p>
<p>Regards</p>
<p>Lotte-Sara Laan</p>
]]></description>
        	        	<pubDate>Sun, 06 Sep 2009 04:52:22 +0300</pubDate>
        </item>
        <item>
        	<title>samtronik on Custom form for search criteria</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-form-for-search-criteria#p9364</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-form-for-search-criteria#p9364</guid>
        	        	<description><![CDATA[<p>I have an application that searches mysql using php, and returns JSON data that is then used to populate a custom written grid/table.</p>
<p>I want to replace this with the jqGrid, but having done so - Im having a few problems when applying new criteria to the grid.</p>
<p>The first time I search, it works fine. The url parameter picks up all the details for the jqGrid command (see below). However, if I then change the form field data and reclick the button which performs the search, the data is not updated (I assume because the &#60;div&#62; is already a jqGrid?</p>
<p><span style="color: #008000;">function runSearch(str){<br />&#160;&#160;&#160; $("#tbSearchResults").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; width: 820,<br />&#160;&#160;&#160; &#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; url: &#39;/my/data/clip.json.php?&#39; + str,&#160;&#160; .............</span></p>
<p>Is there another command to use to either recreate the entire grid from scratch using the new parameters, or is there something which will just replace the data content using the new information?</p>
<p>Im sure its going to be something simple, but I have spent a day trying to use the built in custom search features (which work in almost the same way as I need our form to work) but they are just not going to cut it - at least not without some really heavy customisation.</p>
<p>I would really like to be able to just use the existing form with the existing code, with the existing JSON.... but need the grid to accept revised criteria.</p>
<p>Please help!</p>
<p>Many many thanks,</p>
<p>Sam</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 11:18:26 +0300</pubDate>
        </item>
</channel>
</rss>