easyui datagrid分页栏显示不出来
var grid = {
bind: function (winSize) {
$('#list').datagrid({
url: actionURL,
toolbar: '#toolbar',
title: "数据列表",
iconCls: 'icon icon-list',
width: winSize.width,
height: winSize.height-36,
nowrap: false, //折行
rownumbers: true, //行号
striped: true, //隔行变色
idField: 'KeyId',//主键
singleSelect: true, //单选
sortName: 'KeyId',
sortOrder: 'desc',
frozenColumns: [[]],
columns: [[
{ title: '编号', field: 'KeyId', width: 80, hidden: true },
{ title: '拜访人', field: 'TrueName', width: 100, sortable: true },
{
title: '拜访日期', field: 'docdate', width: 120, sortable: true, formatter: function (value, row, index) {
if (value) {
return value.toString().substring(0, 10);
}
}
},
{ title: '公司', field: 'name', width: 300 },
{ title: '联系人', field: 'contacts', width: 100 },
{ title: '联系人手机', field: 'cell_phone_number', width: 120 },
{ title: '抄送人', field: 'csman', width: 280 }
]],
pagination: true,
pageNum: 1,
pageSize: PAGESIZE,
pageList: [20, 40, 50]
});
},
getSelectedRow: function () {
return $('#list').datagrid('getSelected');
},
reload: function () {
$('#list').datagrid('clearSelections').datagrid('reload', { filter: '' });
}
};
由于工具栏出现了两行,下面的分页栏就看不到了