87,902
社区成员
发帖
与我相关
我的任务
分享
var grid = new Ext.grid.EditorGridPanel( {
enableColumnMove : true, // 拖放
enableColumnResize : true, // 改变列高
stripeRows : true, // 斑马线
loadMask : true, // 加载数据时的提示信息
store : store,
cm : cm,
sm : sm,
autoWidth : true,
autoHeight : true,
autoExpandColumn : 'name',
viewConfig : {
forceFit : true
},
tbar : [ '->', {
xtype : 'button',
iconCls : 'deleteIcon',
text : '删除',
disabled : true,
ref : '../removeButton',
handler : function() {
Ext.Msg.confirm('信息', '确定要删除?', function(btn) {
});
}
}, '->', {
xtype : 'button',
iconCls : 'edit1Icon',
text : '查看',
// disabled : true,
// ref : '../queryButton',
handler : function() {
location.href = '../WebRoot/proInfo.html'
// queryItem.editWin();
}
} ],
bbar : new Ext.PagingToolbar( {
pageSize : 10,
store : store,
beforePageText : "当前第",
afterPageText : "页,共{0}页",
lastText : "尾页",
nextText : "下一页",
prevText : "上一页",
firstText : "首页",
refreshText : "刷新页面",
displayInfo : true,
displayMsg : "当前显示 {0} - {1} 行, 共 {2} 行",
emptyMsg : "还没有数据"
})
})