简单的GridPanel

xiaoxiao2022-06-14  40

Ext.onReady(function (){ var _grid=new Ext.grid.GridPanel({ renderTo:Ext.getBody(), height:200, width:350, //colModel等同于columns colModel:new Ext.grid.ColumnModel([ {header: "姓名", width: 100, sortable: true, dataIndex: 'change'}, {header: "年龄", width: 100, sortable: true, dataIndex: 'pctChange'}, {header: "性别", width: 100, sortable: true, dataIndex: 'lastChange'} ]); store:new Ext.data.JsonStore({ data:[{name:"sss",age:28,sex:"男"},{name:"sss",age:28,sex:"女"}],//存放到数组里 fields:["name","sex","age"] }) }); }) 相关资源:ExtJs GridPanel简单的增删改实现代码
转载请注明原文地址: https://www.6miu.com/read-4936708.html

最新回复(0)