extjs 3.4使用combo store创建复选框组项目

extjs 3.4 use combo store to create checkbox group items

本文关键字:创建 复选框 项目 store combo 使用 extjs      更新时间:2023-09-26

我使用的是Extjs 3.4。我已经有了一个带有JsonStore的组合,它从SeamComponent的方法接收JsonDataReader对象。

我想使用这个存储值来创建复选框项目,然后创建一个包含这些项目的复选框组。如果我有一个解决方案来做到这一点,而不需要重写整个js文件,那就太好了。

comboBox.store.each(function (record) {
    items.push({
        boxLabel: record.get(comboBox.displayField),
        name: record.get(comboBox.valueField)
    });
});

此处演示http://ext4all.com/post/extjs-3-use-combo-store-to-create-checkboxgroup-items