<?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: Using Search criteria as default values</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values</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/using-search-criteria-as-default-values/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Reg on Using Search criteria as default values</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20478</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20478</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>What I am doing as a work-around is to&#160;disable all the fields on the form. It is not ideal, but it works and I will wait for you to release the next version with something that works better. I appreciate that very much.</p>
<p>Thanks</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Tue, 26 Oct 2010 04:41:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Using Search criteria as default values</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20466</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20466</guid>
        	        	<description><![CDATA[<p>Hello Reg,</p>
<p>Currently this is not possible, but I think that this have sense and will try to realize it in the next release.</p>
<p>In the mean time you can not use the build in add/edit in navigator, but rather to add a custom button in navigator with add/edit and when using onClickButton option to use this logic for lunching or not the edit form</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 25 Oct 2010 19:17:57 +0300</pubDate>
        </item>
        <item>
        	<title>Reg on Using Search criteria as default values</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20450</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20450</guid>
        	        	<description><![CDATA[<p>I think I figured out most of this.</p>
<p>I retireve the search criteria&#160;like this:&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7188' value='Select Code' data-codeid='sfcode7188' /></p>
<div class='sfcode' id='sfcode7188'>
<p>&#160;&#160; beforeShowForm : function (formid) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var searchOptions = $(&#34;#postingtime&#34;).getGridParam(&#34;postData&#34;); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(searchOptions.item_fk == 0) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // suppress the edit form</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // allow editing and set the default values</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#item_fk&#34;,formid).val(searchOptions.item_fk);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
</div>
<p>What I haven&#39;t been able to figure out is how to suppress the edit form. return[false] doesn&#39;t do anything.</p>
<p>Am I going about this the best way? How can I&#160;prevent the form showing?</p>
<p>Thanks,</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Mon, 25 Oct 2010 01:53:43 +0300</pubDate>
        </item>
        <item>
        	<title>Reg on Using Search criteria as default values</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20449</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-search-criteria-as-default-values#p20449</guid>
        	        	<description><![CDATA[<p>I want to default fields on new records to the values selected on the previous search so that, say, I search for Item = &#39;Hats&#39;, and whether I find any or not and the grid displays any or not, when I click on Add, the default for Item (a dropdown field on&#160;the edit form) is &#39;Hats&#39;.</p>
<p>Is there a way to make this happen?</p>
<p>Thanks</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Sun, 24 Oct 2010 22:53:32 +0300</pubDate>
        </item>
</channel>
</rss>