var grid = $("#maingrid").ligerGrid({
columns: [
{ display: "序号", name: "ID", width: 100, type: "text", align: "left" },
{ display: "联系电话", name: "Telephone", width: 100, type: "date", align: "left" },
{ display: "负责人", name: "LegalPerson", width: 60, type: "date", align: "left" }
], dataAction: 'local', url: '../hanClass&v=5', // 【后面的toobar加上或去掉】 toolbar: {},
pageSize: 20, sortName: 'OrderID',isScroll: false,
width: '98%', height: '100%', heightDiff: -10, checkbox: false
}); var grid = $("#maingrid").ligerGrid({
columns: [
{ display: "序号", name: "ID", width: 100, type: "text", align: "left" },
{ display: "联系电话", name: "Telephone", width: 100, type: "date", align: "left" },
{ display: "负责人", name: "LegalPerson", width: 60, type: "date", align: "left" }
], dataAction: 'local', url: '../hanClass&v=5', // 【后面的toobar加上或去掉】 toolbar: {},
pageSize: 20, sortName: 'OrderID',isScroll: false,
width: '98%', height: '100%', heightDiff: -10, checkbox: false
});

本文详细介绍了如何使用LigerGrid库实现表格数据的高效展示,包括配置参数、数据加载方式、分页排序等功能,同时展示了如何通过网格布局优化用户体验。
620

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



