-
19 Apr 2009 5:05 AM #1
[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
please to verify it.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(); } }] });

-
19 Apr 2009 5:00 PM #2
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.MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
20 Apr 2009 6:51 AM #3
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!
-
20 Apr 2009 7:24 AM #4
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.MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote