1.

How To Apply Pagination To The Grid?

Answer»

This can be done using pagingToolbar() as:

new Ext.PagingToolbar({

PAGESIZE: 25,

STORE: store,

displayInfo: true,

displayMsg: 'Displaying topics {0} - {1} of {2}',

emptyMsg: 'No topics to display',

});

// trigger the data store LOAD

store.load({PARAMS:{start:0, limit:25}});

How to ADD docked item?

dockedItems: [{

xtype: 'toolbar',

items: [{ 

id:'buttonId', 

handler: function() { 

Ext.Msg.alert('title','alertMsg');

});

}]

}]

This can be done using pagingToolbar() as:

new Ext.PagingToolbar({

pageSize: 25,

store: store,

displayInfo: true,

displayMsg: 'Displaying topics {0} - {1} of {2}',

emptyMsg: 'No topics to display',

});

// trigger the data store load

store.load({params:{start:0, limit:25}});

How to add docked item?

dockedItems: [{

xtype: 'toolbar',

items: [{ 

id:'buttonId', 

handler: function() { 

Ext.Msg.alert('title','alertMsg');

});

}]

}]



Discussion

No Comment Found