<?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: wrong priority in colModel template and colModel properties</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-priority-in-colmodel-template-and-colmodel-properties</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/wrong-priority-in-colmodel-template-and-colmodel-properties/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on wrong priority in colModel template and colModel properties</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-priority-in-colmodel-template-and-colmodel-properties#p22503</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-priority-in-colmodel-template-and-colmodel-properties#p22503</guid>
        	        	<description><![CDATA[<p>Sorry Tony,</p>
<p>but <a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L1950" target="_blank">the line</a> have to be changed one more time (How many errors one can make in one line of code?) from</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8656' value='Select Code' data-codeid='sfcode8656' /></p>
<div class='sfcode' id='sfcode8656'>ts.p.colModel[i] = $.extend({}, ts.p.cmTemplate, ts.p.colModel[i].template &#124;&#124; {}, ts.p.colModel[i]);</div>
<p>to:
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit708' value='Select Code' data-codeid='sfcode708' /></p>
<div class='sfcode' id='sfcode708'>ts.p.colModel[i] = $.extend(<strong>true, </strong>{}, ts.p.cmTemplate, ts.p.colModel[i].template &#124;&#124; {}, ts.p.colModel[i]);</div>
<p>I hope that it is the last my error in the column templates.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 21 Mar 2011 21:58:38 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on wrong priority in colModel template and colModel properties</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-priority-in-colmodel-template-and-colmodel-properties#p21958</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-priority-in-colmodel-template-and-colmodel-properties#p21958</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>I found small bug in <a href="/blog/?page_id=393/feature-request/templates-for-columns-in-colmodel/#p20807" target="_blank">my original suggestion</a>&#160;about the usage of templates for the <strong>colModel</strong> properties. The problem is that in the current implementation the settings from <strong>cmTemplate</strong> parameter of jqGrid or the <strong>template</strong> properties has higher priority as the settings from the <strong>colModel</strong>&#160;properties. If for example the <strong>width</strong> property exist in all&#160;<strong>template</strong>, <strong>cmTemplate</strong>&#160;and in <strong>colModel</strong>, the values from <strong>template</strong>&#160;insted of <strong>colModel</strong>&#160;property will be used.&#160;So I suggest to change <a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L1895" target="_blank">the line 1895</a>&#160;of the grid.base.js from</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6077' value='Select Code' data-codeid='sfcode6077' /></p>
<div class='sfcode' id='sfcode6077'>clm = $.extend(clm, ts.p.cmTemplate, clm.template &#124;&#124; {});</div>
<p>to</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6836' value='Select Code' data-codeid='sfcode6836' /></p>
<div class='sfcode' id='sfcode6836'>ts.p.colModel[i] = $.extend({}, ts.p.cmTemplate, clm.template &#124;&#124; {}, clm);</div>
<p>Because the colModel templates are not yet described in the documentation, the feature will be probably not used and the problem which I describe here not found by other people.</p>
<p>Best regards</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Sat, 05 Feb 2011 20:28:24 +0200</pubDate>
        </item>
</channel>
</rss>