1
votes

Can anybody tell me how to get the selected value in a controller using combo itemId in extjs?

I have tried it this way:

Ext.getCmp('itemId').getValue(); //this is not working

Thanks

1

1 Answers

4
votes

Be sure to read the docs. getCmp() looks up components by id only. If you want to lookup a component by itemId, use ComponentQuery, or getComponent().