<?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: Cell Title and value</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cell-title-and-value</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/cell-title-and-value/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Cell Title and value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-title-and-value#p23155</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-title-and-value#p23155</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>the custom formatter function should be used to set <strong>contain</strong> of the cell and no attributes like the <strong>title</strong> attribute used for tooltips. The new 4.0 version of jqGrid support&#160;<strong>cellattr</strong> event which can be used to set cell attributes. See <a href="http://stackoverflow.com/questions/5625325/how-to-merge-cells-in-jqgrid-4-0/5625959#5625959" target="_blank">here</a>, <a href="http://stackoverflow.com/questions/5281101/how-to-set-the-cell-background-color-baced-on-the-cell-value-in-jqgrid/5281391#5281391" target="_blank">here</a> (including demo examples) and <a href="/blog/?page_id=393/feature-request/custom-cell-tooltips-used-title-property-of-colmodel-as-the-function/" target="_blank">here</a>.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 13 May 2011 13:00:50 +0300</pubDate>
        </item>
        <item>
        	<title>mrugesh.patel on Cell Title and value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-title-and-value#p23152</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-title-and-value#p23152</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I would like to display different values in cell and tooltip (title).</p>
</p>
<p>For Eg.</p>
<p>I am trying to limit the number of characters displayed in the cell</p>
<p>and then display the actual value in the tooltip.</p>
<p>I used the formatter function but it seems that the tooltip value is directly picked from the cell value.</p>
<p>My code looks like this.</p>
</p>
<p>colModel:[&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160;&#160; {name:&#39;description&#39;,index:&#39;description&#39;, width:100, sortable:false, align:&#39;left&#39;,formatter:wrapFormatter}<br />&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;],</p>
<p>function wrapFormatter (cellvalue, options, rowObject){&#160;&#160; &#160;<br />&#160;&#160; &#160;var titleVal = cellvalue;&#160;&#160; &#160;<br />&#160;&#160; &#160;if(cellvalue.length &#62; 25) {&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;cellvalue = cellvalue.substring(0,25)+&#39;...&#39;;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;$("#grid").setCell(options.rowId, cellvalue, &#39;&#39;, &#39;&#39;,{ title: titleVal});&#160;&#160; &#160; <br />&#160;&#160; &#160;return cellvalue;&#160;&#160; &#160;<br />}</p>
</p>
<p>Any help would be appreciated</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Fri, 13 May 2011 10:09:07 +0300</pubDate>
        </item>
</channel>
</rss>