View Full Version : Event on Grid Panel Data rerender

25 Oct 2012, 6:34 AM
What is the event that fires when the data in a DataGrid are recharged or rendered?
For example, a DataGrid showing the results of a filtered search. Every time you click on the Search button with a different filter, the results (number of rows) of the DataGrid are different.

- The events render(this, eOpts) and afterrender(this, eOpts) only works at first rendering, however the followings render's don't fire the event method

25 Oct 2012, 7:22 AM
In ExtJS terms, rendering is a one-time process for a component when it is initially added to the DOM.

Try the refresh event on the grid's view:


25 Oct 2012, 7:34 AM
The event refresh don't fire when the dataGrid Store change :s

25 Oct 2012, 7:42 AM
Are you definitely listening on the correct component? The refresh event is on the grid's view, not the grid itself.

Small scale changes to the data may not fire refresh. Events like itemadd, itemremove and itemupdate may help in those circumstances.

25 Oct 2012, 7:56 AM
Yes, I define the event in the view's Grid, not in the Grid, but don't work.

I don't think that I need to define three event's which do the same function.

25 Oct 2012, 8:23 AM
Could you post some code showing what you're doing? The refresh event really should cover the filtering scenario you've described.