<?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: formatoptions vs editoptions - cells with dropdown values</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/formatoptions-vs-editoptions-cells-with-dropdown-values</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/formatoptions-vs-editoptions-cells-with-dropdown-values/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mnaoumov on formatoptions vs editoptions - cells with dropdown values</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/formatoptions-vs-editoptions-cells-with-dropdown-values#p22045</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/formatoptions-vs-editoptions-cells-with-dropdown-values#p22045</guid>
        	        	<description><![CDATA[<p>I found the issue for cells with dropdown values. When you select a value and the cell losts the focus - the value disappers.</p>
<p>If the <strong>formatoptions</strong>&#160;for <strong>colModel</strong>&#160;are set, the <strong>editoptions</strong>&#160;and their values are ignored.</p>
</p>
<p>During many hours debugging I found that in the&#160;</p>
<p>File&#160;<strong>jquery.fmatter.js</strong></p>
<p>Function&#160;<strong>$.fn.fmatter.select&#160;</strong></p>
<p>has such logic :</p>
</p>
<p>if(!$.fmatter.isUndefined(opts.colModel.formatoptions)){</p>
<p>&#160;&#160; &#160;oSelect= opts.colModel.formatoptions.value;</p>
<p>} else if(!$.fmatter.isUndefined(opts.colModel.editoptions)){ &#160; // AAA</p>
<p>&#160;&#160; oSelect= opts.colModel.editoptions.value;</p>
<p>}</p>
<p>if (oSelect) {</p>
<p>....</p>
<p>}</p>
</p>
<p>But if <strong>formatoptions.value</strong>&#160;is not set - <strong>editoptions.value</strong>&#160;is ignored and <strong>oSelect</strong>&#160;is undefined and no formatting performed and it is a mistake</p>
</p>
<p>I think <strong>AAA</strong>&#160;row should be rewritten in something like&#160;</p>
<p>} if(!oSelect &#38;&#38;&#160;!$.fmatter.isUndefined(opts.colModel.editoptions)){ &#160; // AAA</p>
</p>
<p>I think this issue started with jqGrid 3.8 when <strong>formatoptions</strong>&#160;logic was placed in this file. Our previous version (3.5) was working perfectly.</p>
</p>
<p>Hope this will help to someone.</p>
]]></description>
        	        	<pubDate>Fri, 11 Feb 2011 01:18:26 +0200</pubDate>
        </item>
</channel>
</rss>