<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script src="/Style/JS/Aries.Loader.js"></script>
</head>
<body>
<table id="grid" class="cont-box-tab"></table>
</body>
</html>
<script type="text/javascript">
var dg = new AR.DataGrid("V_SYS_UserList", "Sys_User", "grid");
dg.isShowToolbar = true;
// dg.options = { sortName: "CreateTime", sortOrder: "desc" };
dg.Search.$target = '';
dg.PKColumn.add("edit", "编辑", null, "userEidt.html", "编辑用户", "edit");
dg.PKColumn.add("del", "删除", null, null, null, "del");
dg.bind();
</script>
如果昨晚更新了,可以:
dg.options.addWhere("字段1","值","=");
dg.options.addWhere("字段2","值",">");
dg.options.addWhere("字段3","值","like");
dg.options.addWhere("字段4","值1,值2","in");
或者用:dg.option.defaultWhere=[{"paramName":"","paramValue:"",paramPattern:"equal"},{...}]
明显前者使用方便些。
设置这些,还需要配置列的搜索吗。
@hxhcnblogs:
这是是默认页面加载就发起的条件。
配置搜索的的,是点击查询按钮后追加的条件。