Event on Grid Panel Data rerender
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
Last edited by ararango; 25 Oct 2012 at 6:53 AM.
Reason: Event's tested.
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:
The event refresh don't fire when the dataGrid Store change
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.
yes , in the view
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.
Could you post some code showing what you're doing? The refresh event really should cover the filtering scenario you've described.
Tags for this Thread