I've notice that if I am working with ProcessingMode="Intermediate" and Enablecallbacks=true , PageIndexButtonCount=10 and grid have more than 10 pages the PageIndexes on navigator panel always stays from 1 to 10. Even if I move to page 15. Actually I've notice that when it's doing the server part it refresh the pageindexes correctly but then it render it again and make it from 1 to 10. If I am asking for GetCurrentPage() in client-side CustomRenderPageIndexBtn event it always return 0. But if I will change Enablecallbacks to false and using standard postback way everything is working fine.
Steps to Reproduce:
LargeDataSet demo
- Change the server-side code as:
private void ddlMode_SelectedIndexChanged(object source, DevExpress.Web.ASPxDataControls.ExtendedEventArgs e) {
chbServerGroupingSorting.Enabled = ddlMode.SelectedIndex == 0;
g1.ClearState();
g1.ProcessingMode = (ddlMode.SelectedIndex == 0) ? ProcessingMode.Client : ProcessingMode.Intermediate; //ProcessingMode.Server
chbServerGroupingSorting.Enabled = g1.ProcessingMode == ProcessingMode.Client;
DataBind();
} - Run the demo and switch to server-side mode (actually this is Intermediate mode now) with CallBacks. Page numbers are from 1 to 10.
- Go to page #15 (just put the page number in the NavBar item). Page numbers are still from 1 to 10.