This is a migrated thread and some comments may be shown as answers.

Virtual Scroll Paging Issue with CurrentPageIndex

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Sep 2008, 06:30 PM
I'm having an issue on PostBack with CurrentPageIndex. When I scroll to a different page the first time CurrentPageIndex is 0, when it should be page N. If I do small incremental paging it works fine, but when jumping by multiple pages CurrentPageIndex is not even remotely accurate. This issue affects which records are displayed after the PostBack.

Grid Code:
<telerik:RadGrid ID="RadGrid_Virtual"  
    Skin="WebBlue"           
    AutoGenerateColumns="False"                                                                                                                                                                                                                                  
    AllowPaging="True" 
    AllowCustomPaging="true"           
    PageSize="10" 
    Width="97%" 
    GridLines="None" 
    OnNeedDataSource="RadGrid_Virtual_NeedDataSource" 
    runat="server"
 
<PagerStyle Visible="false" /> 
<MasterTableView    
    Width="99%" 
    TableLayout="Fixed" 
    CommandItemDisplay="None" 
    CurrentResetPageIndexAction="SetPageIndexToFirst" 
    PageSize="10"
<Columns>  
         ... 
</Columns> 
</MasterTableView> 
<ClientSettings> 
<Scrolling 
        FrozenColumnsCount="2"             
        EnableVirtualScrollPaging="True"                                     
        AllowScroll="True" 
        UseStaticHeaders="True" 
        ScrollHeight="100px" /> 
</ClientSettings> 
</telerik:RadGrid> 
 


Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Sep 2008, 03:15 PM
Hi Michael,

Can you reproduce the problem in the mirror version of this online demo (which is part of the RadControls local installation on your machine)? I tried to replicate the problem in a test project but without much success.

Furthermore, I will appreciate if you send us a demo application which reproduces the strange behavior attached to a formal support ticket. Thus we will examine it in detail and will advice you further.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or