<?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: How to change subgrid header background color</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color</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/how-to-change-subgrid-header-background-color/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Corrado on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p10623</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p10623</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>with the following bold correction</p>
<p>$(&#39;.grid_hdiv table:first&#39;, &#39;#&#39;+row_id <strong>+ &#39; + tr</strong><strong>&#39;</strong>).addClass("scrollSubgrid");</p>
<p>subgrids have different style.</p>
<p>Many thanks.</p>
]]></description>
        	        	<pubDate>Sat, 10 Oct 2009 08:13:58 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p10581</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p10581</guid>
        	        	<description><![CDATA[<p>Hello Corrado,</p>
<p>The table that contain the header is created dynamically, so the class scrollSubgrid is not added.</p>
<p>You can do this diffrent ways, One possible solution:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7494' value='Select Code' data-codeid='sfcode7494' /></p>
<div class='sfcode' id='sfcode7494'>
<div>subGridRowExpanded: function(subgrid_id, row_id) {</div>
<div>&#160;&#160; &#160; var subgrid_table_id = subgrid_id + &#8220;_t&#8221;;</div>
<div>&#160; &#160;&#160; ......</div>
<div>&#160; &#160;&#160; .... jqGrid({.....});</div>
<div>&#160; &#160;&#160; $(".grid_hdiv table:first","#"+row_id).addClass("scrollSubgrid");&#160; &#160;</div>
<div>}</div>
<div></div>
</div>
<div></div>
<div>Please let me known if this work.</div>
<div>Tony</div>
]]></description>
        	        	<pubDate>Fri, 09 Oct 2009 03:21:24 +0300</pubDate>
        </item>
        <item>
        	<title>Corrado on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p10513</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p10513</guid>
        	        	<description><![CDATA[<div>JQuery 1.3.1</div>
<div>jqGrid 3.4.4</div>
<div></div>
<div>Hi,</div>
<div>I would like to apply different styles to subgrid.&#160;Main grid has:</div>
<div></div>
<div>subGridRowExpanded: function(subgrid_id, row_id) {</div>
<div>&#160;&#160; &#160; var subgrid_table_id = subgrid_id + &#8220;_t&#8221;;</div>
<div>&#160;&#160; &#160; $(&#39;#&#39;+subgrid_id).html(&#39;&#60;table id=&#8221;&#39; + subgrid_table_id + &#39;&#8221; class=&#8221;<strong>scrollSubgrid</strong>&#8221; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&#62;&#60;/table&#62;&#39;);</div>
<div><span> </span>&#8230;</div>
<div>}</div>
<div></div>
<div><span> </span></div>
<div>where the subgrid class name is scrollSubgrid.</div>
<div></div>
<div>In the CSS I duplicated the main grid styles and changed &#8220;scrool&#8221; to &#8220;scrollSubgrid&#8221;. What I would like is to change header background and td font color.&#160;I wrote:</div>
<div></div>
<div>table.scrollSubgrid thead th &#160;{</div>
<div><span style="white-space: pre;">&#160; </span><strong>background-color:#C7C422;</strong></div>
<div><span style="white-space: pre;">&#160; </span>border-right:1px solid #ffffff;</div>
<div><span style="white-space: pre;">&#160; </span>border-bottom: 1px solid #ffffff;&#160;</div>
<div><span style="white-space: pre;">&#160; </span>color:#ffffff;</div>
<div><span style="white-space: pre;">&#160; </span>font-size: 90%;</div>
<div><span style="white-space: pre;">&#160; </span>font-weight: bold;</div>
<div><span style="white-space: pre;">&#160; </span>height:auto;</div>
<div><span style="white-space: pre;">&#160; </span>overflow: hidden;</div>
<div><span style="white-space: pre;">&#160; </span>padding: 2px;</div>
<div><span style="white-space: pre;">&#160; </span>text-align: left;</div>
<div><span style="white-space: pre;">&#160; </span>vertical-align: top;</div>
<div><span style="white-space: pre;">&#160; </span>white-space: nowrap;</div>
<div>}</div>
<div></div>
<div>table.scrollSubgrid tbody td &#160;{</div>
<div>&#160;&#160; &#160; border-left: 1px solid transparent;</div>
<div>&#160;&#160; &#160; border-bottom: 1px solid #809396;</div>
<div>&#160;&#160; &#160; /*set an unused color to be index color*/</div>
<div>&#160;&#160; &#160; _border-color:tomato; /*For IE6-*/</div>
<div>&#160;&#160; &#160; /*then remove this indexed color*/</div>
<div>&#160;&#160; &#160; _filter:chroma(color=tomato);/*For IE6-*/<span> </span></div>
<div><strong>&#160;&#160; &#160; color:#757420;</strong></div>
<div>&#160;&#160; &#160; font-size: 90%;</div>
<div>&#160;&#160; &#160; overflow: hidden;</div>
<div>&#160;&#160; &#160; padding: 2px;</div>
<div>&#160;&#160; &#160; text-align: left;</div>
<div>&#160;&#160; &#160; text-overflow: ellipsis;</div>
<div>&#160;&#160; &#160; white-space: wrap;</div>
<div>}</div>
<div></div>
<div>My subgrid rows has new font color but header doesn&#39;t change its background-color. I inspected with FireBug and I have:</div>
<div></div>
<div>&#60;div class=&#8221;grid_hdiv&#8221; style=&#8221;overflow: hidden; width: 705px;&#8221;&#62;</div>
<div>&#8230;</div>
<div>&#60;table class=&#8221;<strong>scroll</strong> grid_htable&#8221; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243; border=&#8221;0&#8243; style=&#8221;width: 705px;&#8221;&#62;</div>
<div>&#8230;</div>
<div>&#60;/table&#62;</div>
<div>&#60;/div&#62;</div>
<div></div>
<div>&#60;div class=&#8221;grid_bdiv&#8221; style=&#8221;margin: 0px; padding: 0px; overflow: hidden; height: 100%; width: 705px;&#8221;&#62;</div>
<div>&#60;table id=&#8221;list1_10_t&#8221; class=&#8221;<strong>scrollSubgrid</strong>&#8221; cellspacing=&#8221;0&#8243; cellpadding=&#8221;0&#8243; border=&#8221;0&#8243; style=&#8221;width: 705px;&#8221;&#62;</div>
<div>&#60;/table&#62;</div>
<div>&#60;/div&#62;</div>
<div></div>
<div>Why the header table has not scrollSubgrid class?</div>
<div></div>
<div>Many thanks!</div>
<div></div>
<div>Corrado.</div>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 07:18:22 +0300</pubDate>
        </item>
        <item>
        	<title>maggie on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4945</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4945</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I use the css file /themes/basic/grid.css. There is a section for subgrid.&#160;There&#160;you should find&#160;a style called celldivth which is the style for the subgrid header. I change the background-color to #DDDDDD which is grey.</p>
<p>.celldivth {<br />&#160;float: left; /*fix for&#160; buggy browsers*/<br />&#160;border: 1px solid #CCCCCC;<br />&#160;background-color: #DDDDDD;<br />&#160;border-bottom: 1px solid #CBC7B8;<br />&#160;text-align: left;<br />&#160;overflow: auto;<br />}</p>
</p>
<p>&#160;Hope this helps.</p>
<p>Thanks! Maggie</p>
]]></description>
        	        	<pubDate>Wed, 25 Feb 2009 09:33:21 +0200</pubDate>
        </item>
        <item>
        	<title>cartman on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4914</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4914</guid>
        	        	<description><![CDATA[<p>Maggie, can you post your findings here so others can learn from it? 🙂</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 16:13:00 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4903</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4903</guid>
        	        	<description><![CDATA[<p>I found the css and it worked! Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 10:19:47 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4873</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4873</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Look in the CSS carfully. There are items for the subgrid where you can play with this. It should work.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 07:40:37 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on How to change subgrid header background color</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4814</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-subgrid-header-background-color#p4814</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I tried to change the subgrid header background color from blue to grey. I tried to configure themes\\basic\\grid.css but it does not work.&#160; Can you please help me? Thanks!</p>
<p>Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 19:07:10 +0200</pubDate>
        </item>
</channel>
</rss>