<?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: Force Colour of Selected Row</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row</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/force-colour-of-selected-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>shaoli on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p26775</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p26775</guid>
        	        	<description><![CDATA[<p>hi tony,</p>
<p>i&#39;m facing the same problem, not able to change the color of the selected row.. please help!!!<img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
]]></description>
        	        	<pubDate>Tue, 12 Jun 2012 14:56:08 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2315</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2315</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I will try to prepare example of this.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2008 12:11:56 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2310</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2310</guid>
        	        	<description><![CDATA[<p>still no good sorry tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2008 03:44:13 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2306</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2306</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry I missed something</p>
<p>.rowselected tr td {color:  #ff0000;} or</p>
<p>.rowselected tr&#62;td {color:  #ff0000;}</p>
<p>should work</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Oct 2008 02:23:22 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2297</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2297</guid>
        	        	<description><![CDATA[<p>I could not get that to work Tony.</p>
<p>Once again the font size changes but the color stays whatever the cell is set at. Tried in FF and IE.</p>
<p>Cheers.</p>
]]></description>
        	        	<pubDate>Thu, 02 Oct 2008 15:34:22 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2281</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2281</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>try this:</p>
<p>.rowselected{ font-size:20px}</p>
<p>.rowselected td {color:  #ff0000;}</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 06:20:22 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2279</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2279</guid>
        	        	<description><![CDATA[<p>Tony, I can use that method to change some css of the class but not the color.</p>
<p>.rowselected{color: #ff0000; font-size:20px}</p>
<p>â€”-</p>
<p>jQuery(â€™#'+id).addClass(â€™rowselectedâ€™);<br />
jQuery(â€™#'+lastsel).removeClass(â€™rowselectedâ€™);</p>
<p>If I click on a row the row changes to 20px font size and reverts if I then click a differnt row. That proves this method does change the css.</p>
<p>Unfortunately the cell color stays exactly the same instead of being forced to red.</p>
]]></description>
        	        	<pubDate>Wed, 01 Oct 2008 06:13:44 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2236</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2236</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>First I reccomend to define in CSS a class myclas, then</p>
<p>onSelectRow: function(id){<br /> if(id &#38;&#38; id!==lastsel){<br />&#160; jQuery(&#8217;#&#8217;+id).addClass("myclass");</p>
<p>&#160; jQuery(&#8217;#&#8217;+lastsel).removeClass("myclass");<br /> lastsel=id;<br /> }<br /> }</p>
<p>This will work since the id is acctually the id of the selected row</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 04:30:59 +0300</pubDate>
        </item>
        <item>
        	<title>Larry D on Force Colour of Selected Row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2230</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/force-colour-of-selected-row#p2230</guid>
        	        	<description><![CDATA[<p>Using the basic template if I select a row the row background turns blue.</p>
<p>Any black cell color turns white (which is good) but if a cell color is specifically set with setCell</p>
<p>jQuery(â€#a_todayâ€).setCell(rowid,â€™l_winsâ€™,â€,{color:â€™redâ€™});</p>
<p>then that color will not change to white. This color clashes with some cells when they are highlighted.</p>
<p>Is it possible to force all selectedrow cell colors to white?</p>
<p>--------------</p>
<p>This is something I tried:</p>
<p>    onSelectRow: function(id){<br />
	if(id &#38;&#38; id!==lastsel){<br />
		var myrowdata = 		jQuery('#a_today').setCell(id,'name','',{color:'white'});<br />
		lastsel=id;<br />
	}<br />
    }, </p>
<p>That sort of works in that it does change the cell color of name to white when the row is selected.</p>
<p>But if I then select another row it stays white (and thus is white on a white background - it doesn't go back to the original cell color.</p>
]]></description>
        	        	<pubDate>Thu, 25 Sep 2008 09:52:41 +0300</pubDate>
        </item>
</channel>
</rss>