I have a RadGrid with 24 Template Columns. These columns are generated during runtime based on a dateset. I also set the width of the columns to a set width depending on the size of the data in the columns (although most of the columns are the same size as each other)
(e.g. col.HeaderStyle.Width = Unit.Pixel(80)). In client settings I have horizontal scrolling enabled (as the grid is a set width but the data is extended) and the FrozenColumnsCount="2".
This all works fine- The correct data displayed, correct widths and when I scroll right the 1st two columns remain where they are whilst the others scroll allowing me to nicely compare.
This Issue is when I scroll to the very far right (the very last column). When the scrollbar reaches the very end all columns including the first two columns that are frozen have their width increased by a noticeable amount. This looks a bit weird and I was hoping to be ale to change some setting so that it doesn't change the width. I've tried many settings such as to set TableLayout in MasterTableView to fixed and set AllowColumnResize to false but this had no effect on the issue.
Do you know of a solution?
Thank You
Code Below:
<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" OnInit="RadGrid1_Init" OnPreRender="RadGrid1_PreRender" OnItemDataBound="RadGrid1_ItemDataBound" CssClass="cssGrid" Skin="Vista" ClientSettings-AllowRowHide="true"
ClientSettings-AllowColumnHide="true" ClientSettings-AllowColumnsReorder="true" ClientSettings-AllowKeyboardNavigation="true"
AllowFilteringByColumn="false" ClientSettings-Resizing-ClipCellContentOnResize="true" HeaderStyle-Wrap="false" HeaderStyle-CssClass="cssColumns" HeaderStyle-HorizontalAlign="Center">
<MasterTableView CommandItemDisplay="Bottom" AutoGenerateColumns="false">
<Columns>
...
</Columns>
</MasterTableView>
<ClientSettings>
<Resizing AllowColumnResize="true" EnableRealTimeResize="true" ShowRowIndicatorColumn="false" AllowResizeToFit="true" AllowRowResize="true" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1" />
<Selecting AllowRowSelect="true" />
</ClientSettings>
(e.g. col.HeaderStyle.Width = Unit.Pixel(80)). In client settings I have horizontal scrolling enabled (as the grid is a set width but the data is extended) and the FrozenColumnsCount="2".
This all works fine- The correct data displayed, correct widths and when I scroll right the 1st two columns remain where they are whilst the others scroll allowing me to nicely compare.
This Issue is when I scroll to the very far right (the very last column). When the scrollbar reaches the very end all columns including the first two columns that are frozen have their width increased by a noticeable amount. This looks a bit weird and I was hoping to be ale to change some setting so that it doesn't change the width. I've tried many settings such as to set TableLayout in MasterTableView to fixed and set AllowColumnResize to false but this had no effect on the issue.
Do you know of a solution?
Thank You
Code Below:
<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" OnInit="RadGrid1_Init" OnPreRender="RadGrid1_PreRender" OnItemDataBound="RadGrid1_ItemDataBound" CssClass="cssGrid" Skin="Vista" ClientSettings-AllowRowHide="true"
ClientSettings-AllowColumnHide="true" ClientSettings-AllowColumnsReorder="true" ClientSettings-AllowKeyboardNavigation="true"
AllowFilteringByColumn="false" ClientSettings-Resizing-ClipCellContentOnResize="true" HeaderStyle-Wrap="false" HeaderStyle-CssClass="cssColumns" HeaderStyle-HorizontalAlign="Center">
<MasterTableView CommandItemDisplay="Bottom" AutoGenerateColumns="false">
<Columns>
...
</Columns>
</MasterTableView>
<ClientSettings>
<Resizing AllowColumnResize="true" EnableRealTimeResize="true" ShowRowIndicatorColumn="false" AllowResizeToFit="true" AllowRowResize="true" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1" />
<Selecting AllowRowSelect="true" />
</ClientSettings>