PDA

View Full Version : Is component based on class x?



wuschba
6 Aug 2010, 12:27 AM
Hello!

I need to know if a component is based on grid or editorgrid. The problem is that the component could as well be devired from grid or editorgrid. Is there a way to tell if a component is based on grid or on editorgrid?

Condor
6 Aug 2010, 12:32 AM
comp instanceof Ext.grid.GridPanel
or

comp.isXType('grid')

wuschba
6 Aug 2010, 12:44 AM
Thanks a lot, works greate!