概述
编写js模块,为datagrid绑定数据源及配置字段及属性,到这里,datagrid的配置就完成了,这时,我们运行页面就可以得到一个带分页的列表
grid = $("#grid").datagrid({
title: "测试",
view: detailview,
url: 'GetList',
sortName: 'Road2',
sortOrder: 'desc',
idField: 'T_ID',
pageSize: 30,
frozenColumns: [[
{ field: 'ck', checkbox: true }
]],
columns: [[
{ field: 'Road2', title: '路口编号', width: 100, sortable: true, align: 'center' },
{ field: 'Road1', title: '路口名称', width: 160, sortable: true, align: 'center' },
]],
pagination: true,
rownumbers: true,
singleSelect: false,
toolbar: [
{ text: "合并数据", iconCls: "icon-edit", handler: HBSJ },
{ text: "删除数据", iconCls: "icon-remove", handler: Remove },
{ text: "通过审核", iconCls: "icon-ok", handler: function(){SH(2);} },
{ text: "不通过审核", iconCls: "icon-no", handler: function(){SH(1);} }
]
最后
以上就是无心豆芽为你收集整理的获取bootgrid选中行数据_easyui的datagrid如何获取选中行数据的全部内容,希望文章能够帮你解决获取bootgrid选中行数据_easyui的datagrid如何获取选中行数据所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复