<?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: Populating cell with dropdown select name</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name</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/populating-cell-with-dropdown-select-name/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Vaishali09 on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p29558</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p29558</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have semicolon in my data itseif. Due to which dropdown that appears while editing contains undefined.</p>
<p>e.g,&#160; 1:<span style="color: #ff0000;">AdamVanmeter;Developer</span>;2:Kinaxis;3:Supply Chain</p>
<p>How can i solve this issue?</p>
<p>Please help.</p>
</p>
<p>Thanks,</p>
<p>Vaishali</p>
]]></description>
        	        	<pubDate>Fri, 27 Sep 2013 12:44:45 +0300</pubDate>
        </item>
        <item>
        	<title>shah on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14381</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14381</guid>
        	        	<description><![CDATA[<p>That is a fantastic catch.. as on the java side i was doing a out.println and not out.print</p>
</p>
<p>thanks!</p>
]]></description>
        	        	<pubDate>Thu, 28 Jan 2010 20:42:36 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14357</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14357</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Form here</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9429' value='Select Code' data-codeid='sfcode9429' /></p>
<div class='sfcode' id='sfcode9429'>
<p>&#34;\\n&#34;</p>
</div>
<p>(suppose you use PHP)</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 28 Jan 2010 17:26:43 +0200</pubDate>
        </item>
        <item>
        	<title>shah on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14291</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14291</guid>
        	        	<description><![CDATA[<p>thanks tony for the quick response.</p>
<p>here is the response from the server as seen in firebug.</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit1092' value='Select Code' data-codeid='sfcode1092' /></p><div class='sfcode' id='sfcode1092'><span style=&#34;&#34;&#34;color:&#34;&#34;>0:SELECT ONE;1:Value1;2:Value2</span><br /><br /></div></pre>
</p>
<p>If i do a jquery trim on the response it works fine, not sure where the space is coming from.</p>
]]></description>
        	        	<pubDate>Tue, 26 Jan 2010 18:42:22 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14285</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14285</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Since you do the string from ajax check your response from server. I think this ios the problem</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 26 Jan 2010 18:27:05 +0200</pubDate>
        </item>
        <item>
        	<title>shah on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14260</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p14260</guid>
        	        	<description><![CDATA[<p>how do we get rid of the undefined in the dropdown. i am using a form not inline editing.</p>
<p>the data i am returning is</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit8774' value='Select Code' data-codeid='sfcode8774' /></p><div class='sfcode' id='sfcode8774'>0:SELECT ONE;1:Value1;2:Value2;<br /></div></pre>
<p>The last semicolon is making the dropdown add undefined,</p>
<p>If i truncate the last semicolon then the dropdown adds a space character to the text in the last like</p>
<p>&#60;select&#62;</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit2049' value='Select Code' data-codeid='sfcode2049' /></p><div class='sfcode' id='sfcode2049'><br />&#60;option value=&#39;0&#39;&#62;SELECT ONE&#60;/option&#62;<br />&#60;option value=&#39;1&#39;&#62;Value1&#60;/option&#62;<br /><br />&#60;option value=&#39;2&#39;&#62;Value2 &#60;/option&#62;<br /><br /><br />&#60;/select&#62;<br /></div></pre>
</p>
<p>Note the blank char after the Value2 for the last option tag.</p>
<p>Please advise. <img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
</p>
<p>Shah</p>
</p>
<p>Her is my code <a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://pastie.org/794369&#39;);" rel="nofollow" href="http://pastie.org/794369" target="_blank">http://pastie.org/794369</a></p>
]]></description>
        	        	<pubDate>Tue, 26 Jan 2010 01:47:29 +0200</pubDate>
        </item>
        <item>
        	<title>Hypex on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p12884</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p12884</guid>
        	        	<description><![CDATA[<p>[Solved]: had to add formatter:&#39;select&#39; to the field.</p>
]]></description>
        	        	<pubDate>Thu, 10 Dec 2009 05:33:19 +0200</pubDate>
        </item>
        <item>
        	<title>Hypex on Populating cell with dropdown select name</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p12883</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populating-cell-with-dropdown-select-name#p12883</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I am trying to populate the listgrid cell, which has a value id currently, with the name of a dropdown list name. The dropdown list value should match the cell value then displaying the dropdown list name.</p>
<p>ColModel</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6261' value='Select Code' data-codeid='sfcode6261' /></p>
<div class='sfcode' id='sfcode6261'>{name:&#39;event_city_id&#39;,event_city_id:&#39;name&#39;,editable:true,edittype:"select",editoptions:{value:citySelect()}},</div>
</p>
<p>citySelect() function</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9725' value='Select Code' data-codeid='sfcode9725' /></p>
<div class='sfcode' id='sfcode9725'>function citySelect(){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var citySelect = jQuery.ajax({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; url: "&#60;?php bloginfo( &#39;wpurl&#39; ); ?&#62;/wp-admin/admin-ajax.php?action=ajax_select_city",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; async: false<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}).responseText;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return citySelect;<br />&#160;&#160;&#160; &#160;&#160;&#160; }</div>
</p>
<p>citySelect() function return value</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9702' value='Select Code' data-codeid='sfcode9702' /></p>
<div class='sfcode' id='sfcode9702'>1:Australia-Melbourne;2:Australia-Sydney;3:Australia-Canberra;4:Australia-Brisbane</div>
</p>
<p>As you can see below event_id 19 shows the value 1. event_id 18 is what i would like it to show (Australia-Melbourne value = 1, same as the cell value). event_id 17 is just showing a list of names for the drop down.</p>
</p>
<p>[Image Can Not Be Found]</p>
]]></description>
        	        	<pubDate>Thu, 10 Dec 2009 03:13:18 +0200</pubDate>
        </item>
</channel>
</rss>