View Full Version : Paging buttons event

15 Oct 2007, 3:28 AM

I know how I can add buttons to paging toolbar, and add handlers to created buttons, but how can I add handler to buttons for first, prev, next, last and refresh buttons that come with paging toolbar?

Thank You...

15 Oct 2007, 3:46 AM
those buttons are within the toolbar as properties. Just keep a variable pointing to your toolbar and you'll be able to add any events this way:

myPagingToolbar = new Ext.[...];
myPagingToolbar.first.on("click", function(){}, this, true);
myPagingToolbar.prev.on("click", function(){}, this, true);
myPagingToolbar.next.on("click", function(){}, this, true);
myPagingToolbar.last.on("click", function(){}, this, true);

on trick I use often to check out object's properties is using the console.log(object) command within your code. That displays everything your object has within Firebug.

15 Oct 2007, 3:52 AM
Thank You...