Omenus
19 Apr 2009, 5:05 AM
there is a bug:
just edit a file: examples/grid/paging.js in line 50
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.
:-/
just edit a file: examples/grid/paging.js in line 50
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.
:-/