<?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: formatter: "actions" ignore (overwrite) the settings from $.jgrid.inlineEdit</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/formatter-actions-ignore-overwrite-the-settings-from-jgrid-inlineedit</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/formatter-actions-ignore-overwrite-the-settings-from-jgrid-inlineedit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on formatter: "actions" ignore (overwrite) the settings from $.jgrid.inlineEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/formatter-actions-ignore-overwrite-the-settings-from-jgrid-inlineedit#p27765</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/formatter-actions-ignore-overwrite-the-settings-from-jgrid-inlineedit#p27765</guid>
        	        	<description><![CDATA[<p>Hallo Tony,</p>
<p>The current code of <strong>formatter: "actions"</strong> have one problem. It defines <strong>op</strong> variable with some values in <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.1/js/jquery.fmatter.js#L397-L410" target="_blank">the first line</a> of the code and then later (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.1/js/jquery.fmatter.js#L439-L450" target="_blank">here</a>) defines variable&#160;<strong>actop</strong> which&#160;will be used to set explicitly the options of inline editing functions. In the way the options defined for <strong>op</strong>&#160;variable will ovewrite the settings from <strong>$.jgrid.inlineEdit</strong>.</p>
<p>It seems to me that the simplest way to fix the problem will be to define <strong>op</strong>&#160;variable just as empty object:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2555' value='Select Code' data-codeid='sfcode2555' /></p>
<div class='sfcode' id='sfcode2555'>var op = {}</div>
<p>In the case some options of the <strong>actop</strong> will be set as <strong>undefined</strong>, but the method <strong>$.extend</strong> will ignore such properties (at least in the current implementation of <strong>$.extend</strong>).</p>
<p>Best regards<br />Oleg</p></p>
]]></description>
        	        	<pubDate>Wed, 21 Nov 2012 14:13:59 +0200</pubDate>
        </item>
</channel>
</rss>