<?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: undefined class added in addRowData (grid.base.js:1849-1905)</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/undefined-class-added-in-addrowdata-grid-base-js1849-1905</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/undefined-class-added-in-addrowdata-grid-base-js1849-1905/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on undefined class added in addRowData (grid.base.js:1849-1905)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/undefined-class-added-in-addrowdata-grid-base-js1849-1905#p15610</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/undefined-class-added-in-addrowdata-grid-base-js1849-1905#p15610</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Fixed in GitHub</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 11 Mar 2010 14:52:05 +0200</pubDate>
        </item>
        <item>
        	<title>ben on undefined class added in addRowData (grid.base.js:1849-1905)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/undefined-class-added-in-addrowdata-grid-base-js1849-1905#p15577</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/undefined-class-added-in-addrowdata-grid-base-js1849-1905#p15577</guid>
        	        	<description><![CDATA[</p>
<p>The cna variable (one dedicated to store the class for alternating rows color, if needed, and an empty&#160;string otherwise) is not always defined.</p>
<p>Indeed, line 1885 sets it but is under the condition that "aradd" evaluates to true on the line.</p>
<p>Therefore, line 1905:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6054' value='Select Code' data-codeid='sfcode6054' /></p>
<div class='sfcode' id='sfcode6054'>&#160;&#160;&#160;&#160;&#160;row = &#34;&#60;tr id=\&#34;&#34;+rowid+&#34;\&#34; role=\&#34;row\&#34; class=\&#34;ui-widget-content jqgrow ui-row-&#34;+t.p.direction+&#34; &#34;+cna+&#34;\&#34;&#62;&#34; + row+&#34;&#60;/tr&#62;&#34;;</div>
<p>sometimes results in "printing" undefined in the tr classes.</p>
</p>
<p>To solve the problem, either add a ternary operator to check whether cna is defined on line 1905 and use an empty string otherwise (i.e. instead of appending</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6693' value='Select Code' data-codeid='sfcode6693' /></p>
<div class='sfcode' id='sfcode6693'>cna</div>
<p>, append</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5141' value='Select Code' data-codeid='sfcode5141' /></p>
<div class='sfcode' id='sfcode5141'>cna ? cna : &#34;&#34;</div>
<p>)</p>
<p>or define cna with a default empty string value somewhere before this call.</p>
</p>
<p>Thanks for your time and consideration.</p>
<p>All lines numbers &#38;&#160;code extracts were based on the repository version which commit hash is&#160;2d3d98a72c3b39a047d88aa0c09916e020a36dd7.</p>
]]></description>
        	        	<pubDate>Wed, 10 Mar 2010 13:10:40 +0200</pubDate>
        </item>
</channel>
</rss>