PDA

View Full Version : Ext.getCmp with lid



dblv
5 Dec 2012, 6:01 AM
Hi,
In MVC mode, we must use lid instead of id but Ext.getCmp works with id.
So, how can I retrieve a field using it's lid property ?

mitchellsimoens
7 Dec 2012, 8:04 AM
Use ComponentQuery:


'container[lid=someVal]'

container is the xtype, someVal is the value on the lid property.

dblv
10 Dec 2012, 12:36 AM
Cool, thanks !