<?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: shows 'undefined' in grid when edittype=select</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect</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/shows-undefined-in-grid-when-edittypeselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10950</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10950</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The bug is fixed in 3.6beta.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 09:14:42 +0300</pubDate>
        </item>
        <item>
        	<title>sand123 on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10942</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10942</guid>
        	        	<description><![CDATA[<blockquote></blockquote>
<hr />
<p>version=3.5.3; if (before edit) open Add form and close (whatever save or not new record) - than also all forms next time filled correctly</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 06:57:47 +0300</pubDate>
        </item>
        <item>
        	<title>sand123 on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10941</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10941</guid>
        	        	<description><![CDATA[<p>And one more important thing (be patient, plz): edyttype=select works fine, <strong>BUT</strong></p>
<ul>
<li>reload page</li>
<li>select any row in grid and click [Edit] - edit form popup</li>
<li>fields with edittype=select filled with values but they don&#39;t match values in this record - they always select 1st item in listbox</li>
<li>close form and open again - on the same record - values selected correctly. </li>
</ul>
<p>this situation reproduced all the time. in editOptions recreateForm = false</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 06:45:31 +0300</pubDate>
        </item>
        <item>
        	<title>sand123 on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10940</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10940</guid>
        	        	<description><![CDATA[<p>Thanks for answer &#8211; now it works! But I was confused &#8211; if there was error in colModel definition &#8211; why it works with 3.5.2 &#8211; while *ALL* other project files (html,js,php,mySQL db) are the same? And the second one: it&#39;s not comfortable (IMHO) to use param &#39;value&#39; explicitly defined in colModel if I use external URL for dropdown values. May it be <strong>optionally</strong> allowed preloading these values when init grid: i.e, ajaxSetup: async-&#62;false, load data according to editUr(if &#39;value&#39; parameter is not defined) and fill &#39;value&#39; parameter, ajaxSetup: async-&#62;true, continue init grid</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 06:00:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10910</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10910</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>All work as expected. Just to analize the situation:</p>
<p>1. You set a edit type select - in this case we expect the data for the select to be get when we perform editiing via the dataUrl option.</p>
<p>2. In the same way you use the formatter select. These values should be in the grid options before you populate the data to the grid. The simple question is why? Just to think - in the case provided from you use another request to obtain the data - in the same time the grid uses his own request to populate the data, which request will be done first? - it is unknown. I think you understand this point. In order to work this you should</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4429' value='Select Code' data-codeid='sfcode4429' /></p>
<div class='sfcode' id='sfcode4429'>
<p>...</p>
<p>{ name: &#39;some&#39;,&#160; edittype:&#39;select&#39;, formatter:&#39;select&#39;, editoptions : {dataUrl:&#39;the_url&#39;, value:{"1:one;2:two..."} }</p>
</div>
<p>The editoption value is for the formatter select while the dataUrl is for the editing.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 02:36:32 +0300</pubDate>
        </item>
        <item>
        	<title>sand123 on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10868</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10868</guid>
        	        	<description><![CDATA[<p>colModel section (dataType in jqGrid.options set to JSON)</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5526' value='Select Code' data-codeid='sfcode5526' /></p>
<div class='sfcode' id='sfcode5526'>
<p>{</p>
<p>name:&#39;id_tag&#39;,</p>
<p>index:&#39;id_tag&#39;,</p>
<p>edittype:&#39;select&#39;,</p>
<p>editoptions:{</p>
<p style="padding-left: 30px;">dataUrl:&#39;./lib/php/do.list.php?table=bak_tags&#39;</p>
<p>},<br />formatter:&#39;select&#39;</p>
<p>}</p>
</div>
<p>raw GET response when open form for adding or editing</p>
<div class="netInfoResponseText netInfoText ">
<p><input type='button' class='sfcodeselect' name='sfselectit8994' value='Select Code' data-codeid='sfcode8994' /></p>
<div class='sfcode' id='sfcode8994'><code>&#60;select&#62;</code></div>
<div class="sfcode" style="padding-left: 30px;"><code>&#60;option value=&#39;1&#39;&#62;Acronis&#60;/option&#62;</code></div>
<div class="sfcode" style="padding-left: 30px;"><code>&#60;option value=&#39;2&#39;&#62;APbackup&#60;/option&#62;</code></div>
<p><input type='button' class='sfcodeselect' name='sfselectit2833' value='Select Code' data-codeid='sfcode2833' /></p>
<div class='sfcode' id='sfcode2833'><code></code><code>&#60;/select&#62;</code></div>
<p>load data response. In grid, in column for &#39;id_tag&#39; must be &#39;Acronis&#39;,  but there &#39;undefined&#39;. All other columns showed correctly</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6742' value='Select Code' data-codeid='sfcode6742' /></p>
<div class='sfcode' id='sfcode6742'>{</div>
<p><input type='button' class='sfcodeselect' name='sfselectit6799' value='Select Code' data-codeid='sfcode6799' /></p>
<div class='sfcode' id='sfcode6799'>&#8220;page&#8221;:&#8221;1&#8243;,</div>
<p><input type='button' class='sfcodeselect' name='sfselectit9616' value='Select Code' data-codeid='sfcode9616' /></p>
<div class='sfcode' id='sfcode9616'>&#8220;total&#8221;:1,</div>
<p><input type='button' class='sfcodeselect' name='sfselectit4110' value='Select Code' data-codeid='sfcode4110' /></p>
<div class='sfcode' id='sfcode4110'>&#8220;records&#8221;:&#8221;1&#8243;,</div>
<p><input type='button' class='sfcodeselect' name='sfselectit3090' value='Select Code' data-codeid='sfcode3090' /></p>
<div class='sfcode' id='sfcode3090'>&#8220;rows&#8221;:[</div>
<div class="sfcode" style="padding-left: 30px;">{</div>
<div class="sfcode" style="padding-left: 30px;">"id":"1",</div>
<div class="sfcode" style="padding-left: 30px;">"cell":["1","Acronis","MyServerName"]</div>
<div class="sfcode" style="padding-left: 30px;">}</div>
<p><input type='button' class='sfcodeselect' name='sfselectit9869' value='Select Code' data-codeid='sfcode9869' /></p>
<div class='sfcode' id='sfcode9869'>]</div>
<p><input type='button' class='sfcodeselect' name='sfselectit5926' value='Select Code' data-codeid='sfcode5926' /></p>
<div class='sfcode' id='sfcode5926'>}</div>
<pre><br /></pre>
</div>
]]></description>
        	        	<pubDate>Tue, 20 Oct 2009 04:09:17 +0300</pubDate>
        </item>
        <item>
        	<title>tony on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10862</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10862</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Your post&#160; does not help. We need a test case, link to the problem or the code with the data.</p>
<p>Reagrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 20 Oct 2009 02:55:52 +0300</pubDate>
        </item>
        <item>
        	<title>sand123 on shows 'undefined' in grid when edittype=select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10851</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/shows-undefined-in-grid-when-edittypeselect#p10851</guid>
        	        	<description><![CDATA[<p>when in colModel edittype set to &#39;select&#39; and dataUrl points to external php script, in grid it shows all cells as &#39;undefined&#39;, but when I try to Add or Edit &#8211; it fills dropdown correctly in the form. When I just link to 3.5.2 version &#8211; it works, but when I use 3.5.3 &#8211; it does&#39;nt. And response JSON arrays from external script (dataUrl) filled also correctly in both versions. Any idea?</p>
]]></description>
        	        	<pubDate>Mon, 19 Oct 2009 23:59:00 +0300</pubDate>
        </item>
</channel>
</rss>