ExtJS 一个grid对应多个store,该如何刷新数据

2025-05-13 15:36:10
推荐回答(2个)
回答(1):

Ext.getCmp('tasklist_grid').reconfigure(taskStore);

reconfigure 参数放入要重新绑定的store 就可以。此时store中的fields 匹配grid columns中的 dataIndex ,才正常显示。

回答(2):

一个grid怎么能对应多个store?一条model倒是可以对应多个store