Ext.Carousel でユーザーが選択した内容に基づいて、新しいデータを入力する必要があるネストされたリストがあります。
TreeStore.load(newData) // this does not work :(
TreeStore.removeAll() // this works!
ドキュメントとフォーラムには答えがないようです.2〜3日間検索しているためです. 前もって感謝します。
Ext.Carousel でユーザーが選択した内容に基づいて、新しいデータを入力する必要があるネストされたリストがあります。
TreeStore.load(newData) // this does not work :(
TreeStore.removeAll() // this works!
ドキュメントとフォーラムには答えがないようです.2〜3日間検索しているためです. 前もって感謝します。
私は次の解決策になりました:
NestedList = Ext.extend(Ext.NestedList, {
loadData: function(data) {
this.store.setProxy({
type:'memory',
data: data,
reader: {
type: 'tree',
root: 'items'
}
});
this.store.load();
{ // some back taps to make it show the top level
this.onBackTap();
this.onBackTap();
this.onBackTap(); };
},
私はあなたが正しいと信じています。新しいデータをロードするには、これを試してください:
TreeStore.removeAll();
TreeStore.add(newData);