是不是把fields定义在了store的后面,store定义在了grid的后面啊?

解决方案 »

  1.   

    找到了毛病了 ;把JsonStore换成Store就行
      

  2.   

    嘿嘿,谢谢哈;load在其他事件调用的
      

  3.   


    var PersonInfoStore = new Ext.data.JsonStore({
      url: "/DzzhXzgltxPersonInfo.mvc/GetAll",
      method: "POST",
      remoteSort: false,
      fields: personInfoFields,
      root: "Items",
      totalProperty: "TotalCount"
    });
     
    JsonStore 是这样使用的