easyui datagrid 注意事项
2015-12-31 17:55
423 查看
使用js指定表格属性时,表格html中的table就只需要一个ID,不能设置class,要不然在框架页中加载时会访问两次数据源
(document).ready(function () {(document).ready(function () {
(‘#tt’).datagrid({
url: ‘/operator/list’,
rownumbers: true,
idField: ‘id’,
striped: true,
singleSelect:true,
collapsible:true,
onSelect: function (rowIndex, rowData) {
setsel(‘tt’, ‘sel’, rowIndex, true);
}
});
});
(document).ready(function () {(document).ready(function () {
(‘#tt’).datagrid({
url: ‘/operator/list’,
rownumbers: true,
idField: ‘id’,
striped: true,
singleSelect:true,
collapsible:true,
onSelect: function (rowIndex, rowData) {
setsel(‘tt’, ‘sel’, rowIndex, true);
}
});
});
<table id="tt" > <thead> <tr> <th data-options="field:'edit',width:50" align="center"></th> <th data-options="field:'operator',width:80">登录名</th> <th data-options="field:'rights'">权限</th> </tr> </thead> </table>
相关文章推荐
- hadoop 输出key和value的分隔符设置
- UGUI之Selectable功能详解上篇(UI动画制作与实现)
- easyui 界面框架小记
- Android中UI线程与后台线程交互设计的5种方法
- iOS小技巧–用runtime 解决UIButton 重复点击问题
- Android开源项目第一篇-----个性化控件UI篇
- solr Query
- 值得收藏的开源代码之UI篇
- 命令行下构建xcode工程(build和archive)
- uiautomator 编译运行步骤
- Error 400 Bad Request
- IE8 未知的运行时错误(ueditor编辑器在ie8、ie7下出现JS错误的解决方法)
- JAVA图形界面(GUI)之常用组件
- 智能设备相关Arduino+esp8266 +阿里云eds + 百度云推动 流程 简约 配置指南
- jQuer选择器小结
- Android Studio编译大工程报错:java.exe'' finished with non-zero exit value 1
- iOS 自定义UITableViewCell
- iOS:关于UITableView的性能优化点
- UIAlertController的使用
- LeetCode 96:Unique Binary Search Trees