$('#tt').datagrid({
width: 880,
nowrap: true,
singleSelect: false,
rownumbers: true,
pagination: true,
param: true,
url: '/Service/ArticleHandler.ashx',
idField: 'id',
columns: [[
{ field: 'ck', checkbox: true },
{ field: 'id', title: '编号', width: 60 },
{ field: 'classname', title: '类别名称', width: 150, align: 'center' },
{ field: 'title', title: '标题', width: 300 },
{ field: 'author', title: '作者', width: 150 },
{ field: 'status', title: '状态', width: 70 },
{ field: 'hit', title: '点击量', width: 70 }
]],
pageSize: 2,
pageList: [2, 25, 50, 100]
});
width: 880,
nowrap: true,
singleSelect: false,
rownumbers: true,
pagination: true,
param: true,
url: '/Service/ArticleHandler.ashx',
idField: 'id',
columns: [[
{ field: 'ck', checkbox: true },
{ field: 'id', title: '编号', width: 60 },
{ field: 'classname', title: '类别名称', width: 150, align: 'center' },
{ field: 'title', title: '标题', width: 300 },
{ field: 'author', title: '作者', width: 150 },
{ field: 'status', title: '状态', width: 70 },
{ field: 'hit', title: '点击量', width: 70 }
]],
pageSize: 2,
pageList: [2, 25, 50, 100]
});
本文介绍了一个使用EasyUI库实现的数据表格配置示例,包括设置宽度、禁止换行、选择模式等,并展示了如何定义列及其属性如标题、宽度等。

5698

被折叠的 条评论
为什么被折叠?



