在ext-all文件中 Ext.grid.GridPanel中的this.view.bind(A,B);报错,错误是:'this.view为空或不是对象'

解决方案 »

  1.   

    js GridPanel部分代码发出来看看
      

  2.   

      grid = new Ext.grid.EditorGridPanel({
            id: "RoomTypeGrid",
            store: RoomTypestore,
            sm: sm,
            cm: cm,
            loadMask: false,
            stripeRows: true,
            clicksToEdit: 1, //clicksToEdit: 1是单击触发,clicksToEdit: 2是双击触发。
            //自适应宽度 参数为列数
            autoExpandColumn: 6, //指定地第7列为自动拉伸列 指定自动填充表格剩余区域的列id
            //超过长度带自动滚动条
            autoScroll: true,
            border: false,
            viewConfig: {
                columnsText: "显示/隐藏列",
                sortAscText: "正序排列",
                sortDescText: "倒序排列"
            },
            //分页
            bbar: pageBbar,
            tbar: [