Results 1 to 4 of 4

Thread: Resetting PagingToolbar to empty!

  1. #1

    Default Resetting PagingToolbar to empty!

    Hi All,

    My requirement is as follows.

    I have 2 tabs with grids. There is some data in the 1st tab's grid. When I move to the second tab I am saying "myItemsStore.removeAll();". When I come back to the first tab, my grid is empty only but the PagingToolbar is not reset. It is still saying as Displaying 1-20 of 20 records. Also, if I click on the Refresh icon that is present in the PagingToolbar all the data is again getting loaded which is no the expected behavior.

    Here is the part of the code snippet.

    myItemsGrid = new Ext.grid.GridPanel({
    id:'ItemsGridId' + tabIndex,
    store: myItemsStore,
    columns : columns,
    bbar: [new Ext.PagingToolbar({
    pageSize: itemsPageBulk,
    id:'ItemsGridPager' + tabIndex,
    store: myItemsStore,
    displayInfo: true,
    displayMsg: 'Displaying records {0} - {1} of {2}',
    emptyMsg: "No records to display"
    })
    ]
    });

    ---
    ---
    myItemsStore.setBaseParams = null;
    myItemsStore.removeAll();

    =============
    Any help in this regard is highly appreciated.

    Thank you.
    Ramanujam.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    What Ext JS 4 version are you using?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default

    ExtJS3.0 is what we are using for our development.

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    Moved to the correct forum then.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •