<?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: TH align according to the colModel align</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align</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/feature-request/th-align-according-to-the-colmodel-align/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>richtebb on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p17768</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p17768</guid>
        	        	<description><![CDATA[<p>In case anyone wants it, here is some code that will update the column CSS classes to match the column properties. You should call it from your gridComplete event</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5982' value='Select Code' data-codeid='sfcode5982' /></p>
<div class='sfcode' id='sfcode5982'>gridComplete: function() { <br />&#160;&#160;$(&#39;#mygrid&#39;).each(function() { <br />&#160;&#160; &#160;var t = this, i, thclass;<br /> &#160;&#160; &#160;for (i = 0; i &#60; t.p.colModel.length; i++) { <br />&#160;&#160; &#160; &#160;switch (t.p.colModel[i].align) { <br />&#160;&#160; &#160; &#160; &#160;case &#34;center&#34;: thclass = &#34;ui-th-center&#34;; break;<br /> &#160;&#160; &#160; &#160; &#160;case &#34;right&#34;: thclass = &#34;ui-th-right&#34;; break;<br /> &#160;&#160; &#160; &#160; &#160;default: thclass = &#34;ui-th-left&#34;; break;<br /> &#160;&#160; &#160; &#160;}<br /> &#160;&#160; &#160;}<br /> &#160;&#160; &#160;$(t).setLabel(i, null, thclass);<br /> &#160;&#160;});<br /> }</div>
</p>
<p>Apologies for cut+paste errors &#8211; pasting is difficult in this forum.</p></p>
]]></description>
        	        	<pubDate>Sat, 05 Jun 2010 18:07:22 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p15167</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p15167</guid>
        	        	<description><![CDATA[<p>Hello everybody!</p>
<p>This feature request looks like now more as a discussion. So I say my personal opinion too.</p>
<p>To have the same column header alignments in a jqGrid as for the column seems for me a very good choice. But from the compatibility side I find good if any change from one jqGrid version to a new one don&#8217;t change any default behavior. Users find good to see new features in all new version, but not all users find nice to have a new look in a new version. So I would suggest to introduce a new jqGrid parameter with default column alignment (one global parameter for the whole grid) with value like &#8220;center&#8221;, &#8220;left&#8221; and &#8220;right&#8221; and with something like &#8220;inherit&#8221;, for example, which means, that column alignment should be inherit from the alignment of the corresponding column. One can have an additional parameter in colModel especially for alignment of the column header, which overwrite column header alignment for a column. With this way one receives maximum flexibility, every could implement his favorite alignment of the column headers, but one will don&#8217;t change the default behavior of column alignment for existing grids.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 25 Feb 2010 22:30:33 +0200</pubDate>
        </item>
        <item>
        	<title>SinErgy on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p15144</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p15144</guid>
        	        	<description><![CDATA[<p>full ack</p>
</p>
<p>same request here...</p>
<p>it&#39;s ok to set it manually by setLabel, but many columns makes much more code...</p>
<p>So it would be "natural" if the column header will be aligned according to the colModel and setLabel makes a manual override possible.</p>
</p>
<p>thx</p>
<p>Pat</p>
]]></description>
        	        	<pubDate>Thu, 25 Feb 2010 10:32:07 +0200</pubDate>
        </item>
        <item>
        	<title>Inara on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p14847</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p14847</guid>
        	        	<description><![CDATA[<p>I would like to second snobo&#39;s request for column headers to automatically be aligned according to the colModel alignments. It would make the grid look more natural, and avoid having to call setLabel on every column of every grid.</p>
</p>
<p>Thanks,</p>
<p>Matt</p>
]]></description>
        	        	<pubDate>Wed, 17 Feb 2010 00:24:11 +0200</pubDate>
        </item>
        <item>
        	<title>snobo on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p6672</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p6672</guid>
        	        	<description><![CDATA[<p>thanx for the tip, will use it as a workaround.</p>
<p>But in my opinion, in future versions of jqGrid the alignment of header cells should by default follow the colModel specifications, do you agree?</p>
]]></description>
        	        	<pubDate>Thu, 14 May 2009 01:22:24 +0300</pubDate>
        </item>
        <item>
        	<title>tony on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p6653</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p6653</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use setLabel method to align the headers like the columns.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 13 May 2009 13:35:20 +0300</pubDate>
        </item>
        <item>
        	<title>snobo on TH align according to the colModel align</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p6529</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/th-align-according-to-the-colmodel-align#p6529</guid>
        	        	<description><![CDATA[<p>I find it odd that header cell (TH) alignment does not obey align setting for the corresponding column definition in the colModel. I.e., if we set column to align:right, would be natural if a header cell also got right aligned...</p>
<p>Seemingly minor thing; but the resulting grid with mismatching aligns looks less professional, and clients often notice such minor things... 😉</p>
]]></description>
        	        	<pubDate>Wed, 06 May 2009 11:56:02 +0300</pubDate>
        </item>
</channel>
</rss>