这个需要修改ItemSelector.js文件给itemselector加上restore(store)函数就可以了 例如:
带相应 js 中调用方法 如下
其中 itemselector 为 FormPanel 的name
ds 为 json 数据源 即可
restore: function(store){
this.fromMultiselect.store.loadData(store);
}带相应 js 中调用方法 如下
isForm.getForm().findField('itemselector').restore(ds); 其中 itemselector 为 FormPanel 的name
ds 为 json 数据源 即可
本文介绍了一种方法来解决ItemSelector组件无法正确加载数据的问题。通过在ItemSelector中添加restore函数,并提供一个示例说明如何使用该函数从指定的数据源加载数据。
291

被折叠的 条评论
为什么被折叠?



