i add a plugins in page bar
plugins:[new Ext.ux.PageSizePlugin()],
this is the plugins code
//////////////////////////////////
Ext.ux.PageSizePlugin = function(config) {
Ext.apply(this, config);
Ext.ux.PageSizePlugin.superclass.constructor.call(this, {
store: new Ext.data.SimpleStore({
fields: ['text', 'value'],
data: [['5', 5], ['10', 10], ['15', 15], ['20', 20],
['25', 25], ['50', 50]]
}),
mode: 'local',
displayField: 'text',
valueField: 'value',
allowBlank: false,
triggerAction: 'all',
width: 50,
maskRe: /[0-9]/
});
};
Ext.extend(Ext.ux.PageSizePlugin, Ext.form.ComboBox, {
beforeText:'显示',
afterText:'条/页',
init: function(paging) {
paging.on('render', this.onInitView, this);
},
onInitView: function(paging) {
paging.add('-', this.beforeText, this, this.afterText);
this.setValue(paging.pageSize);
this.on('select', this.onPageSizeChanged, paging);
this.on('specialkey', function(combo, e) {
if(13 === e.getKey()) {
this.onPageSizeChanged.call(paging, this);
}
});
},
onPageSizeChanged: function(combo) {
this.pageSize = parseInt(combo.getRawValue(), 10);
this.doLoad(0);
}
});
/////////////////////////////////
my problem is this, when i reload the store, how refresh the plugin
--~--~---------~--~----~------------~-------~--~----~
Our Web site: http://www.RefreshAustin.org/
You received this message because you are subscribed to the Google Groups
"Refresh Austin" group.
[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.
[ Unsubscribe ]
To unsubscribe from this group, send email to
[email protected]
[ More Info ]
For more options, visit this group at
http://groups.google.com/group/Refresh-Austin
-~----------~----~----~----~------~----~------~--~---