Hi I am binding a radgrid and column width is adjusted by a cssclass as shown below in code, But issue is, this css works on column data but not on hearders... i am reffering to latest telerik dll.
<style type="text/css">
.AutoShrink {
width: auto !important;
}
</style>
<telerik:RadGrid ID="rgWorkInProgress" runat="server" AllowPaging="True" AllowSorting="True" ShowStatusBar="True"
AutoGenerateColumns="False" PageSize="10" ShowGroupPanel="False" AllowFilteringByColumn="true"
CellSpacing="0" GridLines="None" EnableTheming="true" AllowCustomPaging="true"
OnNeedDataSource="rgWorkInProgress_NeedDataSource" OnPageIndexChanged="rgWorkInProgress_PageIndexChanged"
OnSortCommand="rgWorkInProgress_SortCommand" HeaderStyle-CssClass="AutoShrink">
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
<ClientSettings AllowDragToGroup="false">
<Resizing AllowColumnResize="true" AllowResizeToFit="true" />
<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" />
<ClientEvents OnFilterMenuShowing="filterMenuShowing" />
</ClientSettings>
<MasterTableView TableLayout="Auto" AllowCustomSorting="true" AllowNaturalSort="false" AllowFilteringByColumn="True" CssClass="AutoShrink">
<EditFormSettings>
<EditColumn />
</EditFormSettings>
<HeaderStyle HorizontalAlign="Left" Wrap="false" CssClass="AutoShrink"/>
<FilterItemStyle HorizontalAlign="Left" Wrap="false" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="false" />
<style type="text/css">
.AutoShrink {
width: auto !important;
}
</style>
<telerik:RadGrid ID="rgWorkInProgress" runat="server" AllowPaging="True" AllowSorting="True" ShowStatusBar="True"
AutoGenerateColumns="False" PageSize="10" ShowGroupPanel="False" AllowFilteringByColumn="true"
CellSpacing="0" GridLines="None" EnableTheming="true" AllowCustomPaging="true"
OnNeedDataSource="rgWorkInProgress_NeedDataSource" OnPageIndexChanged="rgWorkInProgress_PageIndexChanged"
OnSortCommand="rgWorkInProgress_SortCommand" HeaderStyle-CssClass="AutoShrink">
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
<ClientSettings AllowDragToGroup="false">
<Resizing AllowColumnResize="true" AllowResizeToFit="true" />
<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" />
<ClientEvents OnFilterMenuShowing="filterMenuShowing" />
</ClientSettings>
<MasterTableView TableLayout="Auto" AllowCustomSorting="true" AllowNaturalSort="false" AllowFilteringByColumn="True" CssClass="AutoShrink">
<EditFormSettings>
<EditColumn />
</EditFormSettings>
<HeaderStyle HorizontalAlign="Left" Wrap="false" CssClass="AutoShrink"/>
<FilterItemStyle HorizontalAlign="Left" Wrap="false" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="false" />