Results 1 to 4 of 4

Thread: [FIXED][3.0rc1] PagingToolbar - config application

    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
    Krakw, Poland
    Posts
    1
    Vote Rating
    0
      0  

    Default [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
    8
      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
    18,583
    Vote Rating
    873
      0  

    Default

    I've moved the button creation to initComponent, which now means that the beforePageText option will work correctly.
    Evan Trimboli
    Twitter - @evantrimboli

  4. #4
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    8
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •