<?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: getRowData should return original data</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-should-return-original-data</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/getrowdata-should-return-original-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on getRowData should return original data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-should-return-original-data#p10702</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-should-return-original-data#p10702</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can get the original data using this simple additions:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3824' value='Select Code' data-codeid='sfcode3824' /></p>
<div class='sfcode' id='sfcode3824'>
<p>var rowdata={}, colmodel = ("#mygrid").getGridParam(&#39;colModel&#39;);</p>
<p>$("#rowid td","#mygrid").each(function(i){</p>
<p>rowdata[colmodel[i].name] = $(this).html();</p>
<p>});</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 14 Oct 2009 11:19:13 +0300</pubDate>
        </item>
        <item>
        	<title>dlee on getRowData should return original data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-should-return-original-data#p10617</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-should-return-original-data#p10617</guid>
        	        	<description><![CDATA[<p>From seeing the forums, it seems that getRowData is returning the the text value of the cells and not the original data. The best attempt seems to be to use $.unformat on the returned text values to try to get the original values.</p>
</p>
<p>Instead of going about unformatting the formatted value and trying to guess the original data, Grid should instead store a Javascript Array somewhere that contains the actual original data. Perhaps the TR element can store the raw row Object in an attribute somewhere.</p>
</p>
<p>In either case, Grid should return the actual original data and not try to guess the original data using $.unformat.</p>
]]></description>
        	        	<pubDate>Fri, 09 Oct 2009 15:10:29 +0300</pubDate>
        </item>
</channel>
</rss>