View Full Version : How to listen events of unrendered component in Ext 4.2

5 Mar 2014, 5:56 AM
Hello ,
I am having a component (For eg grid) in Ext 4.2 which will get rendered after few user interactions. (Click on button, selecting some checkboxes etc. ) . However I need to listen to some of the events which this components is going to fire after or before rendering.

Can some one please tell me how can I register some functions as a listner to this component which is still underendered. If I try to do

Ext.getCmp("unrenderedGrid").getStore().on("load", function(){}) Naturally this is going to throw exception as grid with id "unrendered" is not yet rendered. Any link, tutorial will greatly be appriciated.

Thanks in advance Samir

6 Mar 2014, 5:53 PM
So long as the component is instantiated it doesn't matter whether it's rendered, you can still register event listeners.