1

我想使用 Extjs 4 和 MVC 架构将商店动态绑定到我的网格面板中的组合框,我在按钮的 clic 处理程序中执行了此操作:

var prodRelStore = this.getGetProdRelDataStore();   
var mygridprodrel = scopegrid.getView().getHeaderCt().getHeaderAtIndex(2);//the combo column
    prodRelStore.getProxy().url = 'getprodrel.php';
    prodRelStore.autoSync = true;
    prodRelStore.load({
    params: {
            scope_name: scopename
            },
            scope : this
    });
    mygridprodrel.bindStore(prodRelStore);
    scopegrid.getView().refresh();

但我得到:Uncaught TypeError: Object [object Object] has no method 'bindStore' 将商店动态绑定到网格面板内的组合框的正确方法是什么?

4

0 回答 0