1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    1
    Vote Rating
    0
    yuandong1222 is on a distinguished road

      0  

    Default [2.??][DUP] Bug when PagingToolBar works with filters such as gridFilter

    [2.??][DUP] Bug when PagingToolBar works with filters such as gridFilter


    Ext.PagingToolbar get 'start'/'cursor' using method: onLoad: function(A, C, F).

    Code:
        onLoad: function(A, C, F){
            if (!this.rendered) {
                this.dsLoaded = [A, C, F];
                return
            }
            this.cursor = F.params ? F.params[this.paramNames.start] : 0;
            var E = this.getPageData(), B = E.activePage, D = E.pages;
            this.afterTextEl.el.innerHTML = String.format(this.afterPageText, E.pages);
            this.field.dom.value = B;
            this.first.setDisabled(B == 1);
            this.prev.setDisabled(B == 1);
            this.next.setDisabled(B == D);
            this.last.setDisabled(B == D);
            this.loading.enable();
            this.updateInfo();
            this.fireEvent("change", this, E)
        }
    The line marked as bold should be this:
    this.cursor = F.params && F.params[this.paramNames.start] ? F.params[this.paramNames.start] : 0;

    Because some filters such as girdFilter use params to load, but not set param 'start';

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    91
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Please check for duplicates before posting a bugreport.

    This is the 4th duplicate of the same bug (original report here)!

Thread Participants: 1