EXT 的ItemSelector如何动态加载数据

这个需要修改ItemSelector.js文件给itemselector加上restore(store)函数就可以了 例如:
restore: function(store){
      this.fromMultiselect.store.loadData(store);
}


带相应 js 中调用方法 如下
isForm.getForm().findField('itemselector').restore(ds);  


其中 itemselector 为 FormPanel 的name
    ds  为 json 数据源 即可

你可能感兴趣的:(JavaScript,json,ext)