gridpanel paging, when changing store data size, pagIndex isn't correct

  1. #1

    page index of gridpanel displays a wrong number

    My Problem like this:
    1. Gridpanel with a pagingToolBar, whose pagesize is 10.
    2. First time, Girdpanel1.getStore().datasource = myDataTable1; // (rows.count=11);
    3. Go to the second page.(pageIndex/totalPage:2/2)
    4. Fire OnRefreshData event, set: Girdpanel1.getStore().datasource = myDataTable2; // (rows.count=9);
    5. The gridpanel is blank, until you goto the first page ,you can't see anything. (pageIndex/totalPage:2/1)

    In other words, pageIndex is not updated when totalPage has been updated.
    Last edited by zhangsir199; Dec 23, 2010 at 8:25 AM.

Similar Threads

  1. [CLOSED] Dynamically Changing GridPanel Paging in DirectEvent
    By mbb in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 18, 2011, 10:40 AM
  2. Changing Grid Panel Data Store
    By anand in forum 1.x Help
    Replies: 4
    Last Post: May 14, 2011, 8:07 PM
  3. store.data.items.length and paging problem
    By tanju_yayak in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2011, 8:15 AM
  4. Replies: 1
    Last Post: Jan 03, 2011, 1:49 PM
  5. [CLOSED] Drop down list under a ComboBox is not the correct size...
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2009, 2:50 PM

Tags for this Thread

Posting Permissions