<?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: $.unformat.select don't use formatoptions, but $.fn.fmatter.select use it</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/unformat-select-dont-use-formatoptions-but-fn-fmatter-select-use-it</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/unformat-select-dont-use-formatoptions-but-fn-fmatter-select-use-it/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on $.unformat.select don't use formatoptions, but $.fn.fmatter.select use it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/unformat-select-dont-use-formatoptions-but-fn-fmatter-select-use-it#p25740</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/unformat-select-dont-use-formatoptions-but-fn-fmatter-select-use-it#p25740</guid>
        	        	<description><![CDATA[<p>Thanks Oleg.</p>
<p>Fixed.</p>
<p>Best Regardsa</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 20 Jan 2012 15:33:16 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on $.unformat.select don't use formatoptions, but $.fn.fmatter.select use it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/unformat-select-dont-use-formatoptions-but-fn-fmatter-select-use-it#p25735</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/unformat-select-dont-use-formatoptions-but-fn-fmatter-select-use-it#p25735</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>small bug exist in the <strong>$.unformat.select</strong> function. The <strong>$.fn.fmatter.select</strong> uses <strong>value</strong> and <strong>separator</strong> properties from the <strong>formatoptions</strong> if it&#39;s defined (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/jquery.fmatter.js#L350-356" target="_blank">here</a>), but <strong>$.unformat.select</strong>&#160;function uses only editoptions during unformatting (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/jquery.fmatter.js#L538" target="_blank">here</a>). It can produce some problems and de facto not permit to use <strong>formatoptions</strong>&#160;for the &#39;select&#39; formatter in the most cases.</p>
<p>One can fix the problem by replacing of <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/jquery.fmatter.js#L538" target="_blank">the line</a>&#160;of <strong>$.unformat.select</strong>&#160;function</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7583' value='Select Code' data-codeid='sfcode7583' /></p>
<div class='sfcode' id='sfcode7583'>var op = $.extend({},options.colModel.editoptions);</div>
<p>to the line for example</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8721' value='Select Code' data-codeid='sfcode8721' /></p>
<div class='sfcode' id='sfcode8721'>var op = $.extend({}, !$.fmatter.isUndefined(options.colModel.formatoptions) ? options.colModel.formatoptions: options.colModel.editoptions);</div>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 20 Jan 2012 12:31:48 +0200</pubDate>
        </item>
</channel>
</rss>