I have JSON String
[{"firstName" : "John", "lastName" : "Smith"}]
How to set the value in Dropdown. I tried setValue() but Dropdown dispays all json objects.
Please help me, I am using Sencha Ext JS 4.2
您必须首先从要在组合中设置的记录中提取字符串,如下所示:
combo.setValue(record.get("firstname") + " " + record.get("lastname"));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.