Air_Mike
15 Oct 2007, 3:28 AM
Hi,
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...
BernardChhun
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.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.