PDA

View Full Version : Get Componet without id?



nneverwei
18 Apr 2011, 10:18 PM
For example on a page with Extjs, If there is a Grid, can i get it without using it's id?
In other words, how can i know there is a grid on this page & get this Grid for operating?

Maybe there are sloves on this question, but with poor English i can't find suitable answers. Thanks a lot for anyone can help me:)

varunach
18 Apr 2011, 10:53 PM
Try using
findByType( String/Ext.Component/Class xtype,[Boolean shallow]