PDA

View Full Version : Add listener to grid refresh



Dmoney
17 Jul 2010, 6:35 AM
how can I add a listener to the grid refresh and the paging buttons. I have two grids and when you select a record in the first the data relevant to that record is shown in the second. however if they refresh the first grid or page forward or backwards I need to clear the second grid.

if it matters I'm using rowselect to catch the selection. like this :


myGrid.getSelectionModel().on('rowselect', handleRowSelect);

18 Jul 2010, 10:41 AM
you can listen to the view's refresh event or the store's load event

Animal
18 Jul 2010, 11:06 AM
It's the Store's load event you want.