<?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: script for paint all rows of n cols</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/script-for-paint-all-rows-of-n-cols</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/script-for-paint-all-rows-of-n-cols/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>josepk on script for paint all rows of n cols</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/script-for-paint-all-rows-of-n-cols#p1488</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/script-for-paint-all-rows-of-n-cols#p1488</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have done the script for painting all rows of n cols, if you</p>
<p>put this on the function<strong> loadComplete</strong> the cols pointed will</p>
<p>be painted.</p>
<p>Here are the params:</p>
<p>records: number of records of the grid.</p>
<p>cols: array of the cols to be painted</p>
<p>classe: style or name of the class to be applied to cells of that col</p>
<p>idGrid: the grid to be painted</p>
<p>example:</p>
<p>1:</p>
<p><span style="font-size: x-small;"></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit3257' value='Select Code' data-codeid='sfcode3257' /></p>
<div class='sfcode' id='sfcode3257'><span style="font-size: x-small;"><span style="font-size: x-small;"><font style="font-size: x-small;" size="2"></font><font size="2"></p>
<p>highLightCols(records,[4,5,6,7],</p>
</p>
<p></font></span><font style="font-size: x-small;" size="2"></p>
<p></font></span></p>
<p><span style="font-size: x-small;">"blueClass", </span><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">"grid"</span></span><span style="font-size: x-small;">);</span></p>
</div>
</p>
<p>2:</p>
</p>
<p><span style="font-size: x-small;"></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit2840' value='Select Code' data-codeid='sfcode2840' /></p>
<div class='sfcode' id='sfcode2840'><span style="font-size: x-small;"></p>
<p>highLightCols(</p>
<p>records, [4,5,6,7],</p>
<p><span style="font-size: x-small;"><font style="font-size: x-small;" size="2"></font><font size="2"></font></span></p>
<p>{</p>
</p>
<p></span><font style="font-size: x-small;" size="2"></p>
<p></font></p>
<p><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">&#39;font-weight&#39;</span></span><span style="font-size: x-small;">: </span><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">&#39;bold&#39;</span></span><span style="font-size: x-small;">,color: </span><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">&#39;red&#39;</span></span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">&#39;text-align&#39;</span></span><span style="font-size: x-small;">:</span><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">&#39;center&#39;</span></span><span style="font-size: x-small;">}, </span></p>
<p><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">"grid"</span></span><span style="font-size: x-small;">);</span></p>
</div>
<p><font size="2"></p>
<p></font></p>
<p>&#160;<span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"></span></span></p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">
<p><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><strong></strong></span></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit5126' value='Select Code' data-codeid='sfcode5126' /></p>
<div class='sfcode' id='sfcode5126'>
<p><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><font size="2" color="#7f0055"></font><font size="2" color="#7f0055"></font></span></span></span></span></span></span></p>
<p align="left"><strong>function&#160;</strong></p>
<p><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;"><font size="2" color="#7f0055"></font></span></span></p>
<p align="left">&#160;</p>
</p>
<p align="left">&#160;</p>
<p align="left"><span style="font-size: x-small;">highLightCols(records, cols, classe, idGrid){<span style="font-size: x-small;"> <span style="font-size: x-small;"><font size="2"></font></span></span></span></p>
<p align="left">&#160;</p>
<p><strong><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">for</span></span><span style="font-size: x-small;"> (</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">var</span></span></strong> <span style="font-size: x-small;"><strong>j=0; j&#60;cols.length; j++){</strong><span style="font-size: x-small;"> <span style="font-size: x-small;"><font size="2"></font></span></span></span></p>
<p align="left">&#160;</p>
<p><strong><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">for</span></span><span style="font-size: x-small;"> (</span><span style="font-size: x-small; color: #7f0055;"><span style="font-size: x-small; color: #7f0055;">var</span></span></strong> <span style="font-size: x-small;"><strong>i=0; i&#60;records; i++){</strong><span style="font-size: x-small;"> <span style="font-size: x-small;"><font size="2"></font></span></span></span></p>
<p align="left"><strong>$(</strong></p>
<p><strong><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">"#"+idGrid"</span></span><span style="font-size: x-small;">).setCell(i,cols[j],</span><span style="font-size: x-small; color: #2a00ff;"><span style="font-size: x-small; color: #2a00ff;">""</span></span></strong><span style="font-size: x-small;"><strong>,classe);</strong></span></p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p>&#160;}</p>
<p>}</p>
</div>
<p align="left">&#160;</p>
<p><font size="2" color="#7f0055"></font></p>
<p align="left">&#160;</p>
</p>
<p align="left">&#160;</p>
<p align="left">&#160;</p>
<p align="left"><span style="font-size: x-small;">thanks.</span></p>
<p align="left">&#160;</p>
<p align="left"><span style="font-size: x-small;">Josep Escofet</span></p></p>
]]></description>
        	        	<pubDate>Wed, 13 Aug 2008 07:55:05 +0300</pubDate>
        </item>
</channel>
</rss>