PDA

View Full Version : Is there a listener when all grid is rendered means also after the rows get rendered



pulkitagarwal
6 Jan 2011, 5:10 AM
I am giving an id in column rendere but when I try to access it the program errors out saying that
Ext.get("id") is null . This means that the cell did not render till then .

How can I ensure that the id (cell gets created) ?

pulkitagarwal
13 Jan 2011, 12:37 AM
[SOLVED] there is some defer function .
addEventToSaveButton.defer(1, this,[save_id]);

so the function is called after some time (1 ms or 1s whatever) and save_id argument is passed to it.
the deference ensures that the renderer is called , id/html element gets created and so error got removed.