<?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: Keys / Index / ID - edittype:select</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-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/discussion/keys-index-id-edittypeselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Keys / Index / ID - edittype:select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3128</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3128</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry for this - it is my bad - I need really to update to&#160;</p>
<p>new Forum</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 17 Nov 2008 08:14:54 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Keys / Index / ID - edittype:select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3126</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3126</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>This is under the discussion forum, not the help forum. I am want to discuss how the keys are working with the select and then make some changes to imrove the product.</p>
<p>As to your comment; The php code that generates the list correctly</p>
<p>formats&#160; the string. Generated code below:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2112' value='Select Code' data-codeid='sfcode2112' /></p>
<div class='sfcode' id='sfcode2112'>
<pre id="line21">editoptions:{value:"1:2005-2006;2:2006-2007;3:2007-2008;4:2008-2009;5:2009-2010; 6:2010-2011; 7:2011-2012;8:2012-2013;9:2013-2014"}},<br /></pre>
</p>
</div>
<p>Barry</p>
]]></description>
        	        	<pubDate>Mon, 17 Nov 2008 07:45:14 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Keys / Index / ID - edittype:select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3123</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3123</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe this</p>
<p><span class="sfcode">{name:&#39;season_id&#39;,index:&#39;season_id&#39;,width:100,editable:true, edittype:&#8221;select&#8221;,editoptions:{<strong>value:</strong>&#60;?=$season_list?&#62;}},</span></p>
<p>And the values in this case should be a string</p>
<p>- i.e. value:&#39;1:spring;2:summer...&#39;</p>
<p>See docs and examples.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 17 Nov 2008 07:37:15 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Keys / Index / ID - edittype:select</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3109</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/keys-index-id-edittypeselect#p3109</guid>
        	        	<description><![CDATA[<p>My first reaction is that jqgrid is really good and has a lot of potential. Congratulations to the ones who have done so much work!</p>
<p>I am currently somwhat concerned because I don&#39;t care for the way it deals with keys, indexes and edittype:select. (OR it might beh that I don&#39;t know how to make it behave in a way I find acceptable.)</p>
<p>Consider this workflow:</p>
<p>I have a table in the database used to define seasons, just 2 columns:</p>
<ul>
<li>season_tb.season_id</li>
<li>season_tb.season</li>
</ul>
<p>Now I want to use jqgrid, inline editing, edittype:select on the season field.</p>
<p>So I create a list from the database {&#39;1&#39;:&#39;spring&#39;, &#39;2&#39;:&#39;summer&#39;, &#39;3&#39;:&#39;fall&#39;, &#39;4&#39;:&#39;winter&#39;} ) On the server side I use editoptions to configure the list.</p>
<p>In colModel I do this:</p>
<p><span class="sfcode">{name:&#39;season_id&#39;,index:&#39;season_id&#39;,width:100,editable:true, edittype:"select",editoptions:{&#60;?=$season_list?&#62;}},</span></p>
<p>In order for the grid to dissplay, spring, summer, fall, and winter, is to necessary to set season_id = "spring", <strong><span style="text-decoration: underline;">which is wrong</span></strong>.</p>
<p>I acknowledge that on a post "season_id = 1". However dealing with "season_id" becomes difficult and confusing. At first "season_id" = "spring" then on a post "season_id"="1". Unless you edit&#160; the row then "season_id"="&#38;nbsp;". Which is even worse.</p>
<p>I find that I can make jquery do almost what I want, but there are just to many work arounds that I can&#39;t feel good about it.</p>
<p>Barry</p></p>
]]></description>
        	        	<pubDate>Sun, 16 Nov 2008 22:17:33 +0200</pubDate>
        </item>
</channel>
</rss>