I have Yahoo scrolling and after the first scroll the grids height changes for a second and then return to the right height. Next time I scroll the height is correct all the way.
This is the aspx
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function HandleGridViewScrolling(sender, e) |
| { |
| if(e.isOnBottom) |
| { |
| var currentlyDisplayedRecords = sender.get_masterTableView().get_pageSize() * (sender.get_masterTableView().get_currentPageIndex() + 1); |
| if(currentlyDisplayedRecords < 200) |
| { |
| $find('RadAjaxManager1').AjaxRequest('LoadMoreRecords'); |
| } |
| } |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <div> |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server"></telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="LoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" CssClass="opto_loadingpanel" runat="server"></telerik:RadAjaxLoadingPanel> |
| <telerik:RadSplitter ID="RadSplitter1" runat="server" FullScreenMode="true" Orientation="Horizontal" VisibleDuringInit="false"> |
| <telerik:RadPane ID="RadPane1" runat="server" Height="200px"> |
| </telerik:RadPane> |
| <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> |
| <telerik:RadPane ID="RadPane2" runat="server" Height="600px"> |
| <telerik:RadGrid ID="RadGrid1" PageSize="30" Height="100%" runat="server" OnNeedDataSource="OPTO_GridView1_NeedDataSource" |
| GridLines="None" EnableAjax="false" EnableOutsideScripts="true" EnableAJAXLoadingTemplate="false" |
| LoadingTemplateTransparency="20" AllowPaging="true" AllowSorting="True" AllowMultiRowSelection="true"> |
| <ClientSettings AllowKeyboardNavigation="false" EnablePostBackOnRowClick="true" ReorderColumnsOnClient="True" AllowColumnsReorder="True"> |
| <Selecting AllowRowSelect="true" /> |
| <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="false" /> |
| <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" /> |
| <ClientEvents OnScroll="HandleGridViewScrolling" /> |
| </ClientSettings> |
| <PagerStyle Visible="false" /> |
| </telerik:RadGrid> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </div> |
| </form> |
| </body> |
| </html> |
<telerik:RadGrid ID="RadGrid1" DataSourceID="datasource1" runat="server" Width="97%"
PageSize="20" AllowSorting="True" Skin="Office2007" AllowPaging="True"
ShowGroupPanel="True" GridLines="None" AllowFilteringByColumn="True">
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst"
DataSourceID="CTK" Dir="LTR" Frame="Border" TableLayout="Auto" Width="100%" GroupLoadMode="Client" >
....
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True"
AllowColumnsReorder="True" >
<Scrolling AllowScroll="True" UseStaticHeaders="True" >
</Scrolling>
</ClientSettings>
When I drag a column to group,the grouping does occur but the horizontal scroll is lost, and all columns widths are shrunk to fit.
Is there a way to maintain the column widths and maintain horizontal scroll after grouping?
I would appreciate if someone could help me with this.
Thanks,
Tal