PDA

View Full Version : Reference to combobox by name



neosky
21 May 2014, 4:33 AM
Hello. In my form i am have combobox:



{ xtype: 'combobox',
width: 350,
store: 'Book',
name:'name777'}
And i am want reference to this combobox by name!? I am know this work with Id through :
Ext.getCmp('Id'), but I do not need Id, i am want do it by name.

scottmartin
21 May 2014, 4:38 AM
You can use itemId and then access it
panel.down('#MyItemId')

or any property
panel.query('textfield[name=field_name]')[0]