解决方案 »

  1.   

    store不要配置为自动加载,然后通过事件触发store对象的load方法就行了       var store = new Ext.data.JsonStore({  
                 url: 'index.action', //返回json的文件       
                 autoLoad: false,//////////////
                 fields: ['fileName', 'ipoName', 'uwCode'], //读取里面的属性             
                 root: 'list'     //读取里面的对象   list  从后台取得的数据 
             });  
     Ext.get('uploadFileFieldPath').on('change',
             function (field, newValue, oldValue) {             var filePath = Ext.getCmp('uploadFileFieldPath').getValue();             store.load({ params: { filePath: filePath} });//通过params传递你需要的参数对

                 Ext.Ajax.request({
                     url: 'index.action',
                     method: 'post',
                     params: { filePath: filePath },
                     success: function () {
                         alert('成功');
                     },
                     failure: function () {
                         alert('失败');
                     }
                 });
             }, this);
      

  2.   

    参考: ExtJS 4 Change grid store on the fly
    如果数据结构也发生变化的,使用reconfigure,如果数据结构一样,只是数据内容变化的,使用load(),loadData(),loadRecord()