PDA

View Full Version : How to get an old grid view before it refreshes?



_vk_
13 Feb 2013, 4:40 AM
Hi, guys. I wonder if there's a way to get an old grid view DOM before it refreshes. When I try something like this, I get the grid view in "beforerefresh" event already refreshed. Is there any way to catch the old grid view, not the new one? Thanks.



Ext.create ("Ext.grid.Panel", {
.................................................
listeners: {
"viewready": function(panel) {
var gridView = panel.getView();

gridView.on({
"beforerefresh": function(view, eOpts) {
console.log (view.getEl().dom);
}
})
}
}

mitchellsimoens
14 Feb 2013, 9:18 PM
In the beforerefresh the "old" DOM is there as the new hasn't been put in yet.