<?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: select on search form send 'null'</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null</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/select-on-search-form-send-null/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>efrenba on select on search form send 'null'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null#p25768</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null#p25768</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>The PHP code is:</p>
<p>---</p>
<p><span style="color: #339966;">$db-&#62;exec_query("select * from gnm_unit");</span></p>
<p>$select = "&#60;select&#62;";<br />while( $row = $db-&#62;fetch_data() )<br />{<br />&#160;&#160; &#160;$selected = ( $row["id"] == "KGS" ) ? "selected" : "";<br />&#160;&#160; &#160;$select .= "&#60;option value="". $row["id"] ."" {$selected}&#62;". $row["name"] ."&#60;/option&#62;";<br />}<br />$select .= "&#60;/select&#62;";</p>
<p>//send response to ajax<br />header("Content-Type: text/html");<br />echo $select;</p>
</p>
<p>and it sends to the client:</p>
<p>---</p>
<p><span style="color: #339966;">&#60;select&#62;&#60;option value="KGS" selected&#62;KGS&#60;/option&#62;&#60;option value="LTS" &#62;LTS&#60;/option&#62;&#60;option value="UNO" &#62;UNO&#60;/option&#62;&#60;/select&#62;</span></p>
</p>
<p>Every is fine, well, I suppose, I have other selects declared into the Search Form except that these don&#39;t get data from server, they take them from ColModel as follow:</p>
<p>{name:"enabled", index:"enabled", width:100, align:"center", editable:true, search:true, formatter:"checkbox", edittype:"checkbox", stype:"select", editoptions:{value:"1:0",defaultValue:"1"}, <strong>searchoptions:{value:{0:$.security.grid.personal.disabled,1:$.security.grid.personal.enabled}</strong>, sopt:[&#39;eq&#39;]}}</p>
</p>
<p>//text vars</p>
<p><strong>$.security.grid.personal.disabled = "Disabled";</strong></p>
<p><strong>$.security.grid.personal.enabled = "Enabled";<br /></strong></p>
</p>
<p>These last "selects" work fine, they dont send &#39;null&#39; when the "select" is built.</p>
</p>
<p>best regards</p></p>
]]></description>
        	        	<pubDate>Tue, 24 Jan 2012 01:59:04 +0200</pubDate>
        </item>
        <item>
        	<title>tony on select on search form send 'null'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null#p25757</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null#p25757</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The simple check is - please see what is your code when you buil the select. See what data is sended from &#160;server when the select is build</p>
</p>
<p>Regardas</p>
]]></description>
        	        	<pubDate>Mon, 23 Jan 2012 10:40:20 +0200</pubDate>
        </item>
        <item>
        	<title>efrenba on select on search form send 'null'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null#p25750</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/select-on-search-form-send-null#p25750</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;ve a gird with a search form enabled, one of the search conditions is a select that is filled from the server, the problem is that the first time that this select is filled and I send the query to the server, on the other side I get &#39;null&#39; instead of the select&#39;s value, but, if I change to another value, and also, if I return to the first one all works fine.</p>
<p>what do I doing wrong?,</p>
<p>regards</p>
]]></description>
        	        	<pubDate>Sat, 21 Jan 2012 07:39:33 +0200</pubDate>
        </item>
</channel>
</rss>