<?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: Get cell value during grid load</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-value-during-grid-load</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/help/get-cell-value-during-grid-load/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>liny on Get cell value during grid load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-value-during-grid-load#p20626</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-cell-value-during-grid-load#p20626</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>You can use below example in your customized formatter function:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4898' value='Select Code' data-codeid='sfcode4898' /></p>
<div class='sfcode' id='sfcode4898'>formatter:function(cellvalue, options, rowObject){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(rowObject[&#39;anotherColumnName&#39;]);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return cellvalue;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</div></p>
]]></description>
        	        	<pubDate>Tue, 02 Nov 2010 04:29:59 +0200</pubDate>
        </item>
        <item>
        	<title>bablaza on Get cell value during grid load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-cell-value-during-grid-load#p19921</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-cell-value-during-grid-load#p19921</guid>
        	        	<description><![CDATA[<p>I want to create a custom formatter for which the format of the cell is based on another cell in the same row.</p>
<p>For example, don&#39;t show a checkbox unless there is a certain name in another column. Or create a "mailto" link on a name where a different column is used for the subject value.</p>
<p>In my formatter, I try to use getCell or getRowData to look at another column&#39;s data, passing in options.rowid and the appropriate column name. But it always returns "undefined" or "false". Making the same call after the grid is loaded returns the correct value. So I&#39;m guessing that that the grid data isn&#39;t available while the grid is being built.</p>
<p>So how can my formatter access&#160;the value in a different column?</p>
<p>For the purposes of this exercise, assume I have a column named "manager", and a checkbox column names "complete". The checkbox should only be displayed if there is a certain name in the "manager" column.</p>
]]></description>
        	        	<pubDate>Wed, 22 Sep 2010 08:53:34 +0300</pubDate>
        </item>
</channel>
</rss>