easyui datagrid分页栏显示不出来

unioncron unioncron 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

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: '' });
}
};

由于工具栏出现了两行,下面的分页栏就看不到了
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
unioncron
JavaScript 87,984 成员 224,681 内容