PDA

View Full Version : grid.getGridEl() is undefined



diablo
20 Dec 2010, 4:48 AM
Hi,

as the title says i have this problem with a grid (Ext.panel.GridPanel), the underlying Element is undefined and i don't understand why. Are there any common cases when this Element is not co-generated with the grid?

Thanks!

Foster
20 Dec 2010, 5:57 AM
I think it's a timing issue, from the time between when you create the grid and think the grid is rendered to the time you are trying to access the underlying html element

try to work this into your code


if (this.rendered) ...

diablo
21 Dec 2010, 1:36 AM
@Foster this was the problem. thanks!