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:
Thanks in advance.
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.