1. #11
    Sencha User
    Join Date
    May 2011
    Posts
    18
    Vote Rating
    0
    josephhamilton1 is on a distinguished road

      0  

    Default Ext bug

    Ext bug


    From what I can tell this is a bug in ext. There is a totalLength property that the pager uses to determine pagesize. This property is only updated in the loadRecords method. So here is workaround to get the pager to clear out:

    Code:
    store.removeAll();
    store.totalLength = 0;
    pager.onLoad(
                    store,
                    null,
                    {
                        params: {
                            start: 0
                        }
                    }
                );

  2. #12
    Sencha User
    Join Date
    Dec 2014
    Posts
    1
    Vote Rating
    0
    veegee is on a distinguished road

      0  

    Default


    Quote Originally Posted by josephhamilton1 View Post
    From what I can tell this is a bug in ext. There is a totalLength property that the pager uses to determine pagesize. This property is only updated in the loadRecords method. So here is workaround to get the pager to clear out:

    Code:
    store.removeAll();
    store.totalLength = 0;
    pager.onLoad(
                    store,
                    null,
                    {
                        params: {
                            start: 0
                        }
                    }
                );
    Thanks this worked like a charm!

Similar Threads

  1. Clear grid's sort arrow icon
    By SLerman in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 5 Oct 2011, 5:49 AM
  2. Fire clear event when Store is empty?
    By aconran in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 22 Feb 2007, 4:39 PM

Thread Participants: 10