[英]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? 任何人都可以告诉我如何使用extjs中的combo itemId在控制器中获取所选值?
I have tried it this way: 我这样试过:
Ext.getCmp('itemId').getValue(); //this is not working
Thanks 谢谢
Be sure to read the docs. 一定要阅读文档。 getCmp() looks up components by id only . getCmp() 仅按id查找组件。 If you want to lookup a component by itemId, use ComponentQuery , or getComponent() . 如果要按itemId查找组件,请使用ComponentQuery或getComponent() 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.