PDA

View Full Version : Click handler for grid's refresh button



SLerman
20 Feb 2007, 12:56 PM
Is there any way to set a handler for clicking the refresh button that is fired before the grid page is reloaded? There seems to be an issue with trying to load a page when remoteSort is set to false, so I need to set it back to true before reloading the grid page.

SLerman
22 Feb 2007, 7:23 AM
Anyone?

tryanDLS
22 Feb 2007, 7:52 AM
The refresh button calls data.Store.load. That fn fires the beforeLoad event, so you could add a handler there to do what you need.

EDIT: This response was assuming Ext 1.0 - if you're using .33, the same thing applies, but it's dataModel.load that fires the event.