<?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: Grid  header height</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height</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/grid-header-height/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>marine on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p25970</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p25970</guid>
        	        	<description><![CDATA[<p>It works for me to! thank you!</p>
]]></description>
        	        	<pubDate>Thu, 16 Feb 2012 17:17:28 +0200</pubDate>
        </item>
        <item>
        	<title>deepak_ahu on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p19453</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p19453</guid>
        	        	<description><![CDATA[<p>Great <strong>egocks!! </strong>it worked fine for me to.. thanks</p>
]]></description>
        	        	<pubDate>Wed, 01 Sep 2010 01:34:56 +0300</pubDate>
        </item>
        <item>
        	<title>egocks on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p16908</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p16908</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I encountered the same problem. But I was lucky enough to find the solution in a certain blog post --&#62;<a href="http://2centtech.blogspot.com/2009/12/jqgrid-header-and-cell-value-word-wrap.html" rel="nofollow" target="_blank"><a href="http://2centtech.blogspot.com/" rel="nofollow">http://2centtech.blogspot.com/</a>.....-wrap.html</a>)</p>
</p>
<p>In summary, the right CSS to set is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1230' value='Select Code' data-codeid='sfcode1230' /></p>
<div class='sfcode' id='sfcode1230'>.ui-jqgrid .ui-jqgrid-htable th div {<br />&#160;&#160;&#160; height:auto;<br />&#160;&#160;&#160; overflow:hidden;<br />&#160;&#160;&#160; padding-right:4px;<br />&#160;&#160;&#160; padding-top:2px;<br />&#160;&#160;&#160; position:relative;<br />&#160;&#160;&#160; vertical-align:text-top;<br />&#160;&#160;&#160; white-space:normal  !important;<br />}</div>
</p>
<p>Although I&#39;m not sure if this solution has any bad side effects...</p>
</p>
<p>Just sharing it here for the benefit of others who may encounter the same issue.</p>
]]></description>
        	        	<pubDate>Wed, 05 May 2010 07:01:15 +0300</pubDate>
        </item>
        <item>
        	<title>Bruce on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p10088</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p10088</guid>
        	        	<description><![CDATA[<p>To set the height on&#160;the Header Layer within the jqGrid, I was able to get the following CSS code to work for my grid:</p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">&#160; &#60;style type=&#8221;text/css&#8221;&#62;<br />&#160; &#160;&#160;&#160; #mydiv table.scroll thead th div { height: auto; }<br />&#160; &#60;/style&#62;<br /></span></span></p>
<p>Using Firebug, I was able to see that the Header text is contained within a DIV tag, which is contained within a TH in&#160;a TR of a THEAD tag.&#160; This is part of a TABLE with class &#8220;scroll&#8221;, so the CSS mentioned previously is correct.&#160; However, the text is aligned in the middle vertically within the TH tag, so I added an additional align attribute to move the text to the top:</p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">&#160; &#60;style type=&#8221;text/css&#8221;&#62;<br /></span></span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">&#160;&#160;&#160;&#160;&#160; #mydiv table.scroll thead th { vertical-align: top; }<br />&#160;&#160;&#160;&#160;&#160; #mydiv table.scroll thead th div { height: auto; }<br />&#160; &#60;/style&#62;</span></span></p>
<p>You can&#160;then play with the column width within&#160;the <span style="font-size: x-small;"><strong>colModel</strong> </span>property, but keep in mind that if you are sorting, then there is a SPAN tag right next to&#160;the DIV containing the header text to accommodate the sort indicator graphic (which actually displays to the right&#160;of the text.&#160; This&#160;may affect the height because it will adjust the header layer based on the combination of column width, font height, and the sort indicator placement.</p>
]]></description>
        	        	<pubDate>Thu, 24 Sep 2009 11:43:51 +0300</pubDate>
        </item>
        <item>
        	<title>MamaliFrenchi on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p9619</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p9619</guid>
        	        	<description><![CDATA[<p>I have never tried, but It woths trying. Have you ever tried to include \\n or &#60;/br&#62; in your lables? somethign like:</p>
<p>Quantity\\n Previously&#60;/br&#62; Shipped</p>
]]></description>
        	        	<pubDate>Fri, 11 Sep 2009 11:00:55 +0300</pubDate>
        </item>
        <item>
        	<title>Kyle on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p9581</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p9581</guid>
        	        	<description><![CDATA[<p>I know this post is pretty old but the code above didnt work for me but this worked though:</p>
</p>
<p>&#60;style&#62;</p>
<p>&#160;&#160; #mydiv .ui-jqgrid-title { height:30px; }</p>
<p>&#60;/style&#62;</p>
]]></description>
        	        	<pubDate>Thu, 10 Sep 2009 11:34:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p5779</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p5779</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Enclose your grid in div -&#62; mydiv</p>
<p>Then after you load the jqGrid css add this</p>
<p>&#60;style&#62;</p>
<p>#mydiv table.scroll thead th&#160; {</p>
<p>height:30px;</p>
<p>}</p>
<p>&#60;/style&#62;</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 02 Apr 2009 10:57:31 +0300</pubDate>
        </item>
        <item>
        	<title>mckeaveney on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p5761</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p5761</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>Was anyone able to resolve this - i am also having the same issue</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 02 Apr 2009 07:06:10 +0300</pubDate>
        </item>
        <item>
        	<title>maggie on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p5004</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p5004</guid>
        	        	<description><![CDATA[<p>I am not able to get this to work.&#160;&#160; I&#160;am not able to increase the header height-&#160;it seems that&#160;an empty&#160;row is inserted&#160;underneath the header and the title can&#39;t be displayed appropriately by using Tony&#39;s codes. The word wrapping does not work either.</p>
<p>My column titles also are also long but the columnns value usally are one digit integer. I am trying to make the title shorter but it is hard.</p>
<p>I&#39;ll appreciate if anyone&#160;can share&#160;a&#160;solution to this problem.</p>
<p>Thanks, Maggie</p></p>
]]></description>
        	        	<pubDate>Fri, 27 Feb 2009 12:08:41 +0200</pubDate>
        </item>
        <item>
        	<title>dmlenz on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4995</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4995</guid>
        	        	<description><![CDATA[<p>Maggie,</p>
<p>Were you able to get this to work?</p>
<p>Perhaps I am missing something; when I play with the height settings I am able to get a visible change but the text isn&#39;t actually wrapping.</p>
<p>Code is&#160; a copy of what Tony has shown above.</p>
<p>Suggestions on design are also welcome.&#160; I have an integer field never &#62;4 digits with the title: Quantity Previously Shipped.&#160; Anyway that I slice it Qnt Prv Shpd starts to look ridiculous.&#160; Thoughts?&#160; I&#39;d like to avoid wasting the real estate with whitespace.</p>
<p>Any help or commentary is greatly appreciated.</p>
<p>Cheers,<br />David</p>
]]></description>
        	        	<pubDate>Thu, 26 Feb 2009 23:04:50 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4385</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4385</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I never try, but you can experiment with height in setLabel something like</p>
<p>setLabel(0, &#8220;Invoice Number&#8221; ,{color:&#39;red&#39;, &#39;text-align&#39;:&#39;center&#39;,&#39;font-size&#39;:&#39;15px&#39;, &#39;word-wrap&#39;: &#39;break-word&#39;, height:&#39;30px&#39;})</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 05 Feb 2009 01:36:20 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4336</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4336</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I used the setLabel method like this:</p>
<p>setLabel(0, "Invoice Number" ,{color:&#39;red&#39;, &#39;text-align&#39;:&#39;center&#39;,&#39;font-size&#39;:&#39;15px&#39;, &#39;word-wrap&#39;: &#39;break-word&#39;})</p>
<p>I want to set the text font size big but the whole string can&#39;t fit in the column header. Is there a method to set up the header layer height or cell height?</p>
<p>Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Tue, 03 Feb 2009 15:24:51 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4319</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4319</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Use setLabel method.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 03 Feb 2009 01:49:26 +0200</pubDate>
        </item>
        <item>
        	<title>maggie on Grid  header height</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4306</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-header-height#p4306</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Is there a way to adjust the height of the grid header? I can only finde the property to set up the width of a column.</p>
<p>For example, I have a column header title &#160;that&#39;s long- "counts with travel history", the counts are interger value so I don&#39;t want to set the column width too wide , hence the column title wraps and the second line&#160;is hidden. How to&#160;make the&#160;header higher so that the second line can be seen?&#160;</p>
<p>Thanks!</p>
<p>Maggie</p>
]]></description>
        	        	<pubDate>Mon, 02 Feb 2009 21:09:35 +0200</pubDate>
        </item>
</channel>
</rss>