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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar