Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Apr 2009
    Location
    Kraków, Poland
    Posts
    1
    Vote Rating
    0
    Omenus is on a distinguished road

      0  

    Default [FIXED][3.0rc1] PagingToolbar - config application

    [FIXED][3.0rc1] PagingToolbar - config application


    there is a bug:
    just edit a file: examples/grid/paging.js in line 50
    Code:
    var pagingBar = new Ext.PagingToolbar({
            pageSize: 25,
            store: store,
            displayInfo: true,
            displayMsg: 'Displaying topics {0} - {1} of {2}',
            emptyMsg: "No topics to display",
            beforePageText:"MyPageText",//it works in 2.2.1 but in extjs 3RC1 not ;(
            items:[
                '-', {
                pressed: true,
                enableToggle:true,
                text: 'Show Preview',
                cls: 'x-btn-text-icon details',
                toggleHandler: function(btn, pressed){
                    var view = grid.getView();
                    view.showPreview = pressed;
                    view.refresh();
                }
            }]
        });
    please to verify it.

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    I moved your thread, you shouldn't piggy back your report to another thread that is a separate issue.

    I confirm this is a bug. Looks like the config in the constructor is not applied early enough. There's some setup with pagingItems that occurs before the config object is applied to the class so the configs don't get applied.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,169
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I've moved the button creation to initComponent, which now means that the beforePageText option will work correctly.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    6
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Looks good.

    Gentle reminder: it would probably be helpful (to some) to yank out pagingItems to have some set up method so people could override the pagingItems a little easier. overriding initComponent is more difficult IMHO.

Thread Participants: 2