Bug Report A687
Visible to All Users

Intermediate mode with CallBacks - PageIndexes buttons are not recalculated when navigating between pages

created 19 years ago

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

  1. 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();
         }
  2. Run the demo and switch to server-side mode (actually this is Intermediate mode now) with CallBacks. Page numbers are from 1 to 10.
  3. Go to page #15 (just put the page number in the NavBar item). Page numbers are still from 1 to 10.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.