<?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 stupid question</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/getrowdata-stupid-question</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/discussion/getrowdata-stupid-question/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>waiting on getRowData stupid question</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/getrowdata-stupid-question#p21031</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/getrowdata-stupid-question#p21031</guid>
        	        	<description><![CDATA[<p>If you use <a class="wikilink1" title="wiki:predefined_formatter" href="/jqgridwiki/doku.php?id=wiki:predefined_formatter" target="_blank">Predefined Formatter</a> to format date , then getRowData() will return ori value.</p>
<p>If you use&#160;<a class="wikilink1" title="wiki:custom_formatter" href="/jqgridwiki/doku.php?id=wiki:custom_formatter" target="_blank">Custom Formatter</a><span class="wikilink1"> &#160;&#160; then you get formatted value. You need </span><a id="unformatting" name="unformatting" target="_blank">Unformatting to retrive value </a></p>
<blockquote>
<p><a id="unformatting" name="unformatting" target="_blank">Unformatting</a></p>
<p>As mentioned in <a class="wikilink1" title="wiki:predefined_formatter" href="/jqgridwiki/doku.php?id=wiki:predefined_formatter" target="_blank">Predefined Formatter</a> chapter all predefined types are compatible with the editing modules.  This means that the numbers, links, e-mails, etc., are converted so that  they can be edited correctly. Also the methods (like getRowData and  getCell) that get data, used this unformat in order to get the original  value. The question is: What to do if we use a custom formatter function and  want to to have the original value back if we use editing or methods  getRowData and getCell?</p>
<p>The answer is: You can use your own custom unformatter function to do that. This function can be used in colModel</p>
<pre class="code javascript">&#60;script&#62;<br />jQuery("#grid_id").jqGrid({<br />...<br />   colModel: [ <br />      ... <br />      {name:&#39;price&#39;, index:&#39;price&#39;, width:60, align:"center", editable: true, unformat:myunformatfunc},<br />      ...<br />   ]<br />...<br />});<br />function myunformatfunc ( cellvalue, options, cellobject)<br />{<br />   // do something here<br />   return unformated_value;<br />} <br />&#60;/script&#62;</pre>
</blockquote>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter" rel="nofollow" target="_blank">http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter</a></p>
]]></description>
        	        	<pubDate>Mon, 29 Nov 2010 11:56:00 +0200</pubDate>
        </item>
        <item>
        	<title>justmara on getRowData stupid question</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/getrowdata-stupid-question#p21025</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/getrowdata-stupid-question#p21025</guid>
        	        	<description><![CDATA[<p>why this method (getRowData) has such confusing name?</p>
<p>it doesnt returns the <strong>DATA</strong> you&#39;ve provided for this row (using setRowData for example), bu instead ti returns only formatted values of visible columns.</p>
<p>and as I see in code - the original data itself doesn&#39;t even stored, so there isn&#39;t any way to retrieve original data you&#39;ve added to grid? this is stupid.</p>
]]></description>
        	        	<pubDate>Sun, 28 Nov 2010 18:09:18 +0200</pubDate>
        </item>
</channel>
</rss>