<?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 nowrap and conditional classes in jqgrid 3.6</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36</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-nowrap-and-conditional-classes-in-jqgrid-36/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Clement on Cell nowrap and conditional classes in jqgrid 3.6</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p12055</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p12055</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>For (2), I have implemented option 1 as data size is dependent on user&#39;s setting on rownum.</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 03:32:29 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Cell nowrap and conditional classes in jqgrid 3.6</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p12037</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p12037</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The expression</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8565' value='Select Code' data-codeid='sfcode8565' /></p>
<div class='sfcode' id='sfcode8565'>
<p>&#60;style&#62;<br />&#160;&#160;&#160;&#160;&#160; .ui-jqgrid tr.jqgrow td {white-space: normal}<br />&#60;/style&#62;</p>
</div>
<p>Should work. Also be a sure that it is loaded after ui.jqgrid.css file.</p>
<p>As for the second - it depends how many data you load. If you load 20-50 records, you can use both, but if the records are relative to much I suggest the first one.</p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 01:10:17 +0200</pubDate>
        </item>
        <item>
        	<title>Clement on Cell nowrap and conditional classes in jqgrid 3.6</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p11924</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p11924</guid>
        	        	<description><![CDATA[<p>For nowrap, this works..</p>
</p>
<p>&#60;style&#62;<br />&#160;&#160;&#160;&#160;&#160; .ui-jqgrid tr.jqgrow td {white-space: nowrap;}<br />&#60;/style&#62;</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 15:09:27 +0200</pubDate>
        </item>
        <item>
        	<title>Clement on Cell nowrap and conditional classes in jqgrid 3.6</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p11921</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-nowrap-and-conditional-classes-in-jqgrid-36#p11921</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I tried overridding the UI css with the following so that the cell content stays as one line height but it does not work. Has the reference changed? Firebug shows that the style was overridden but the cell content is unchanged.</p>
</p>
<p>&#60;style&#62;<br />&#160;&#160;&#160;&#160;&#160; .ui-jqgrid tr.jqgrow td {white-space: normal}<br />&#60;/style&#62;</p>
</p>
<p>In addition, I like to set the background color of a column depending on a value in thar row. Previously, I would construct the xml data within div tags with class name for the background color. It worked but the color does not fill up the entire cell due to padding in the parent TD tag.</p>
</p>
<p>&#60;cell&#62;&#60;![CDATA[&#60;div class="${status}"&#62;${quantity}&#60;/div&#62;]]&#62;&#60;/cell&#62;</p>
</p>
<p>I read about gridview mode and that it is not compatible with afterInsertRow event. Hence I like to hear if any of the following approach is better in terms of system resources.</p>
</p>
<p>1) Use gridview mode and in gridComplete, add a function loop through the first page of data and set the cell background color.</p>
<p>OR</p>
<p>2) Use afterInsertRow, set cell background color.</p>
<p>OR</p>
<p>3) Other suggestions?</p>
<p>Thank you for your advice and help!</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 11:56:46 +0200</pubDate>
        </item>
</channel>
</rss>