<?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: First load and default value for drop down menu</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu</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/first-load-and-default-value-for-drop-down-menu/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Black on First load and default value for drop down menu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10375</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10375</guid>
        	        	<description><![CDATA[<p>up</p>
]]></description>
        	        	<pubDate>Sat, 03 Oct 2009 04:26:41 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on First load and default value for drop down menu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10343</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10343</guid>
        	        	<description><![CDATA[<p>Interesting...mine are all comma separated and they all work like a charm.&#160; Even the ones passed in using JSON.</p>
</p>
<p>In my case I usually set a variable and then use it in the grid:</p>
</p>
<p>var colTrueFalse = {"value":{"T":"True","F":"False"}};</p>
<p>var colTrueFalseBoolean = {"value":{"true":"True","false":"False"}};</p>
<p>var colTrueFalseSL = {"value":{"L":"L","S":"S"}};</p>
<p>$(&#39;#empControlLocs&#39;).jqGrid({<br />&#160;&#160; url: jsonURL,<br />&#160;&#160; editurl:editURL,<br />&#160; datatype: &#39;json&#39;,<br />&#160;&#160; height: 250,<br />&#160;&#160; colNames:[&#39;Dispatcher&#39;,&#39;Edit Absences&#39;,&#39;Sec/Loc&#39;,&#39;Location/Sector ID&#39;], <br />&#160; colModel:[<br />&#160;&#160; {name:&#39;dispatcher&#39;,index:&#39;dispatcher&#39;, width:100, editable:true, edittype:"select",formatter:&#39;select&#39;,editoptions:colTrueFalseBoolean},<br />&#160;&#160; {name:&#39;editable&#39;,index:&#39;editable&#39;, width:150, editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:colTrueFalseBoolean},<br />&#160;&#160; {name:&#39;sector&#39;,index:&#39;sector&#39;, width:50, editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:colTrueFalseSL},&#160;&#160; <br />&#160;&#160; {name:&#39;locId&#39;,index:&#39;locId&#39;, width:450, editable:true,edittype:"select",formatter:&#39;select&#39;,editoptions:colLocations}<br />&#160;&#160; ],&#160; <br />&#160; rowNum:10, <br />&#160; rowList:[10,20,30],<br />&#160; imgpath: gridimgpath,<br />&#160; pager: $(&#39;#empControlLocspager&#39;),<br />&#160; sortname: &#39;locId&#39;,<br />&#160; sortorder: "desc",<br />&#160;&#160; jsonReader: {repeatitems: false},<br />&#160; caption: "Maintain Location Access" <br />&#160; });</p>
]]></description>
        	        	<pubDate>Fri, 02 Oct 2009 10:27:39 +0300</pubDate>
        </item>
        <item>
        	<title>Black on First load and default value for drop down menu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10326</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10326</guid>
        	        	<description><![CDATA[<blockquote>
<p>Pete said:</p>
<p>I think the format should be:</p>
</p>
<p>editoptions: {value: &#8220;1:first,2:second&#8221;}</p>
</p>
<p>You have a &#8220;;&#8221; where it should be a &#8220;,&#8221;</p>
</blockquote>
<hr />
<p>No ";"</p>
<blockquote>
<p>The <em>editoptions</em> value must contain a set of value:label pairs with the value separated from the label with a colon (:) and ended with(;). Whichever you use, something like the following</p>
<p>editoption: { value: &#8220;FE:FedEx; IN:InTime; TN:TNT&#8221; }</p>
</blockquote>
<p>I repeat my question: when grid load <strong>first </strong>time ...</p>
]]></description>
        	        	<pubDate>Fri, 02 Oct 2009 07:39:23 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on First load and default value for drop down menu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10311</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10311</guid>
        	        	<description><![CDATA[<p>I think the format should be:</p>
</p>
<p>editoptions: {value: &#8220;1:first,2:second&#8221;}</p>
</p>
<p>You have a ";" where it should be a ","</p>
]]></description>
        	        	<pubDate>Thu, 01 Oct 2009 15:10:09 +0300</pubDate>
        </item>
        <item>
        	<title>Black on First load and default value for drop down menu</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10300</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/first-load-and-default-value-for-drop-down-menu#p10300</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>I create drop down menu</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4329' value='Select Code' data-codeid='sfcode4329' /></p>
<div class='sfcode' id='sfcode4329'>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; name: &#8220;customer&#8221;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; , index: &#8220;customer&#8221;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; , stype: &#8220;select&#8221;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; , search: true<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; , editoptions: {value: &#8220;1:first;2:second&#8221;}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; , searchoptions:<br />&#160;&#160;&#160; &#160;&#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;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; defaultValue: 2<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</div>
<p>But when grid load first time this col did not send to search parameters &#8230;</p>
<p>Thanks for help!</p>
]]></description>
        	        	<pubDate>Thu, 01 Oct 2009 06:08:20 +0300</pubDate>
        </item>
</channel>
</rss>