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
});
本文介绍了一种使用vargrid实现网格数据的本地存储、分页显示、排序、滚动等功能的方法,包括如何配置grid的columns、dataAction、url、pageSize等关键属性。
619

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



