<?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: GridToForm does not select from drop down boxes</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes</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/bugs/gridtoform-does-not-select-from-drop-down-boxes/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Renso on GridToForm does not select from drop down boxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p19077</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p19077</guid>
        	        	<description><![CDATA[<p><img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /> When did support stop for 3.4?<br />Tony, is this issue resolved in version 3.7?</p>
]]></description>
        	        	<pubDate>Wed, 11 Aug 2010 15:24:00 +0300</pubDate>
        </item>
        <item>
        	<title>tony on GridToForm does not select from drop down boxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p19068</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p19068</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry to say, but version 3.4 is not supported from our team.</p>
<p>Kind Regard</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 11 Aug 2010 11:13:38 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on GridToForm does not select from drop down boxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18954</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18954</guid>
        	        	<description><![CDATA[<p>Here is the solution:</p>
</p>
<p>Domain Model properties (C#):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1212' value='Select Code' data-codeid='sfcode1212' /></p>
<div class='sfcode' id='sfcode1212'>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public string <span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>ObjectionDescription</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; get { return _objection != null ? _objection.<span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;><strong>Description </strong></span>: &#34;&#34;; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; public string <span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>ObjectionDTO</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; get { return _objection != null ? _objection.<span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;><strong>Id</strong></span>.ToString() : &#34;0&#34;; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</div>
<p>colModel:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3690' value='Select Code' data-codeid='sfcode3690' /></p>
<div class='sfcode' id='sfcode3690'>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;<span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>ObjectionDescription</span>&#39;, index: &#39;ObjectionDescription&#39;, width: 155, sortable: true, align: &#34;left&#34;, resizable: true, search: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;<span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>ObjectionDTO</span>&#39;, index: &#39;ObjectionDTO&#39;, hidden: true, edittype: &#39;select&#39;, editoptions: { value: allObjections} },</div>
<p>Of course the issue is that when using<strong> formatter: &#39;select&#39; </strong>you must display the <span style="color: #ff00ff;">value </span>and not the text, which is not what I want, therefore the solution recommended here is the only one I know, please advise. When I specify the following, is does <span style="text-decoration: underline;">not work</span> and doeas not select the corresponding option from the ObjectionDTO select drop down box:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2154' value='Select Code' data-codeid='sfcode2154' /></p>
<div class='sfcode' id='sfcode2154'>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ObjectionDTO&#39;, index: &#39;ObjectionDTO&#39;, edittype: &#39;select&#39;, formatter: &#39;select&#39;, editoptions: { value: allObjections} },</div>
<p>Also, since I am using toolbar filtering, using my recomendation is an issue as in stead of drop down boxes for the filters it gives me text boxes to represent as in this example the ObjectionDescription property, which again is not what I want. Tony, seems like a catch 22 here. I don&#39;t understand why the formatter: &#39;select&#39; does not work properly and why I have to display the value and not the text in the grid for it to work. Again, I am using version 3.4</p>
]]></description>
        	        	<pubDate>Tue, 03 Aug 2010 23:11:03 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on GridToForm does not select from drop down boxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18951</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18951</guid>
        	        	<description><![CDATA[<p>Thanks for the tip Tony. With this the value will show up in stead of the text in the grid, so for example &#60;option value="300&#8243;&#62;some objection&#60;/option&#62; will show "300" whereas I want the user to see the text value. BTW, I am using version 3.4. Does this mean I must create 2 versions of the column, 1 for viewing that simply has the text value, and another hidden that contains the key value - "300" in this example - that will populate the from drop down correctly?</p>
]]></description>
        	        	<pubDate>Tue, 03 Aug 2010 20:50:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on GridToForm does not select from drop down boxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18932</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18932</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The problem here is that getRowData used in this case will return the text and not the value. One possible solution is to set for these fields formatter:"select".&#160; In this case getRowData will retun the value and not the text.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 03 Aug 2010 11:20:20 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on GridToForm does not select from drop down boxes</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18884</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/gridtoform-does-not-select-from-drop-down-boxes#p18884</guid>
        	        	<description><![CDATA[<p>Not sure if anyone else has this issue, when I use the GridToForm option, all the textboxes are populated correctly with data from the grid, but my drop down boxes remain untouched, does jqGrid&#39;s GridToForm support that?</p>
<blockquote>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ParkAndInfluenceTypeDTO&#39;, index: &#39;ParkAndInfluenceTypeDTO&#39;, width: 100, editable: true, sortable: true, align: "left", resizable: true, edittype: "select", editoptions: { value: allParkAndInfluenceTypes }, editrules: { required: true }, search: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;VOUrl&#39;, index: &#39;VOUrl&#39;, width: 155, editable: true, sortable: true, align: "left", resizable: true, edittype: "select", editoptions: { value: allVOs }, search: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ObjectionUrl&#39;, index: &#39;ObjectionUrl&#39;, width: 155, editable: true, sortable: true, align: "left", resizable: true, edittype: "select", editoptions: { value: allObjections }, search: true },</p>
</blockquote>
<blockquote>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(rowId) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gridSelRow = $(item).getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (gridSelRow) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(item).<strong>GridToForm</strong>(gridSelRow, &#39;#ParkAndInfluencActionsDetails&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
</blockquote>
<blockquote>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;label class="required" for="ParkAndInfluenceTypeDTO"&#62;P&#38;amp;I Type :&#60;/label&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;span class="mvcWrapper required"&#62;&#60;select name="ParkAndInfluenceTypeDTO" id="ParkAndInfluenceTypeDTO" class="required"&#62;&#60;option value="17&#8243;&#62;Create/Maintain Perception&#60;/option&#62;<br />&#60;option value="16&#8243;&#62;Help overcome a specific Objection&#60;/option&#62;<br />&#60;option value="15&#8243;&#62;Help with a specific VO&#60;/option&#62;<br />&#60;option value="19&#8243;&#62;Other&#60;/option&#62;<br />&#60;option value="18&#8243;&#62;Plan to Deliver Value&#60;/option&#62;<br />&#60;/select&#62;&#60;/span&#62;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;br&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;label class="" for="VOUrl"&#62;VO :&#60;/label&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;span class="mvcWrapper"&#62;&#60;select name="VOUrl" id="VOUrl"&#62;&#60;option value=""&#62;&#8230;&#60;/option&#62;<br />&#60;option value="374&#8243;&#62;some VO comment&#60;/option&#62;<br />&#60;option value="507&#8243;&#62;another VO comment&#60;/option&#62;<br />&#60;/select&#62;&#60;/span&#62;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;br&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;label class="" for="ObjectionUrl"&#62;Objection :&#60;/label&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;span class="mvcWrapper"&#62;&#60;select name="ObjectionUrl" id="ObjectionUrl"&#62;&#60;option value=""&#62;&#8230;&#60;/option&#62;<br />&#60;option value="300&#8243;&#62;some objection&#60;/option&#62;<br />&#60;option value="188&#8243;&#62;another objection&#60;/option&#62;</p>
</blockquote>
]]></description>
        	        	<pubDate>Fri, 30 Jul 2010 17:47:45 +0300</pubDate>
        </item>
</channel>
</rss>