Search code examples
extjsextjs4.1sencha-architectextjs4.2

How to get the selected value in the controller using combo itemId in extjs


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


Solution

  • 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().