//create grid
var grid = Ext.create('Ext.form.Panel', {
//title: 'My VM Instance List',
width:'100%',
height: 300,
frame: true,
store: myStore,
loadMask: true,
items: [{
columnWidth: 1,
xtype: 'gridpanel',
store: myStore,
columns:
[
{ header: 'jobInstanceId', dataIndex: 'jobInstanceId', hidden:true},
{ header: 'submitTime', dataIndex: 'submitTime', hidden:true},
{ header: 'startTime', dataIndex: 'startTime', hidden:true},
{ header: 'endTime', dataIndex: 'endTime', hidden:true},
{ header: 'jobTaskTotalCount', dataIndex: 'jobTaskTotalCount', hidden:true} ]
}],
dockedItems: [
{
xtype: 'pagingtoolbar',
store: myStore, // same store GridPanel is using
dock: 'bottom', //分页 位置
emptyMsg: '没有数据',
displayInfo: true,
displayMsg: '当前显示{0}-{1}条记录 / 共{2}条记录 ',
beforePageText: '第',
afterPageText: '页/共{0}页'
}],
renderTo: Ext.get('contents')
});