Hi there,
My desired behavior is:
* On initial rendering of the grid, the columns are auto-sized to their contents (I set Table Layout = "auto")
* The user can resize columns to make them bigger or smaller (I set the resize options to true, real time resize, and resize grid on resize)
* On postback / pagination I want all columns to retain widths
Issue:
* On postback the user sized columns retain widths but all other columns shrink as if Table Layout was set to Fixed with no scrolling.
My grid follows.
thanks!
d
My desired behavior is:
* On initial rendering of the grid, the columns are auto-sized to their contents (I set Table Layout = "auto")
* The user can resize columns to make them bigger or smaller (I set the resize options to true, real time resize, and resize grid on resize)
* On postback / pagination I want all columns to retain widths
Issue:
* On postback the user sized columns retain widths but all other columns shrink as if Table Layout was set to Fixed with no scrolling.
My grid follows.
thanks!
d
<telerik:RadGrid ID="RadGrid1" Width="100%" Height="450px" AllowPaging="True" PageSize="15" |
runat="server" AllowSorting="False" OnNeedDataSource="RadGrid1_NeedDataSource" |
GridLines="None" AllowFilteringByColumn="False" ShowGroupPanel="False" EnableHeaderContextMenu="False" |
OnColumnCreated="RadGrid1_ColumnCreated" OnColumnCreating="RadGrid1_ColumnCreating" |
OnDataBound="RadGrid1_DataBound" OnPreRender="RadGrid1_PreRender" EnableViewState="false" |
OnItemDataBound="RadGrid1_ItemDataBound"> |
<HeaderContextMenu EnableAutoScroll="True"> |
</HeaderContextMenu> |
<MasterTableView Width="100%" AutoGenerateColumns="true" EnableColumnsViewState="false" TableLayout="Auto" /> |
<PagerStyle Mode="NextPrevAndNumeric" |
FirstPageImageUrl="/images/pagingfirst.gif" |
LastPageImageUrl="/images/paginglast.gif" |
NextPageImageUrl="/images/pagingnext.gif" |
PrevPageImageUrl="/images/pagingprev.gif" /> |
<ClientSettings AllowColumnsReorder="False" AllowDragToGroup="False" ReorderColumnsOnClient="False" |
Resizing-AllowColumnResize="True" Resizing-AllowRowResize="False" Resizing-ClipCellContentOnResize="False" |
Resizing-EnableRealTimeResize="True" Resizing-ResizeGridOnColumnResize="True"> |
<Scrolling AllowScroll="True" UseStaticHeaders="True" /> |
</ClientSettings> |
<FilterMenu EnableTheming="False"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</FilterMenu> |
</telerik:RadGrid> |