<?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: sort arrows disturb column width</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/sort-arrows-disturb-column-width</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/sort-arrows-disturb-column-width/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kjoswal on sort arrows disturb column width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sort-arrows-disturb-column-width#p26985</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sort-arrows-disturb-column-width#p26985</guid>
        	        	<description><![CDATA[<p>I have created a grid using the tableToGrid() method.&#160; I set the grid width as 800 px, and each column width appropriate for the size of the heading and the data in that column. In the call to tableToGrid(), I am using all default options except for rowNum, width, height, and colModel (to set col align, width and sorttype).</p>
<p>My issue is, when I click on a column header to sort by that column, the sort arrows (asc/desc) are not visible because I have sized the width of the column to be just wide enough for the header and data (these are fairly narrow columns).</p>
<p>I would rather not add extra width to every column to handle the possibility of a sort icon, because that would make the table horizontally scrollable or too wide for the html page. Ideally, I would just like the column being sorted (let&#39;s ignore multi-col sort for now) to grow in width whenever the sort arrow icon needs to be displayed. I could make the total table width be the sum of my column widths plus extra width for one sort arrow icon.</p>
<p>Alternatively, is there some way of indicating which column the grid is currently sorted by without modifying the width of the column, such as a column background color, or an icon above/below the header text, which would not change the width?</p>
<p>Or is there some grid feature/technique that accomplishes my goal of having the grid width remain less than or equal to my total grid width specification but still allow the sort arrow to appear?</p>
<p>Thanks, Keith.</p>
]]></description>
        	        	<pubDate>Sat, 21 Jul 2012 21:50:48 +0300</pubDate>
        </item>
</channel>
</rss>