Results 1 to 5 of 5

Thread: Grid panel with store - navigate to previous page

  1. #1

    Default Grid panel with store - navigate to previous page

    How to navigate to previous page in grid panel without using store load/loadpage?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    Can you be more specific? Are you looking for a control to perform this?
    http://docs.sencha.com/extjs/4.2.2/#...toolbar.Paging

  3. #3

    Default

    this.getAllData().removeAll(this.getRemovedRecords());
    var dataCount = this.data.getCount();
    if (dataCount === 0 && this.currentPage !== 1) {
    this.loadPage(this.getPageCount() - 1);
    }

    My application uses the above code to navigate to previous page of grid with a store. I want a replacement to "this.loadPage(this.getPageCount() - 1);" which does not use load/loadPage methods.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You can simply issue an ajax request to has start/limit params and the server can send back only the needed records.

  5. #5

    Default

    Records in store of my application are not from servers but are entered by user. Currently, in my application when a record is deleted on the 2nd page, the control takes user to 1st page but the very first record on the 1st page of grid is not visible. However, the record is present in the store. Using, delay : 10, solves the issue now. But, creates other issues. So, I want a fix, that will avoid loading of the pages to navigate from one page to the other.

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
  •