JqGrid相关操作备忘
来源:互联网 发布:java调用tera term 编辑:程序博客网 时间:2024/04/27 02:13
1.获得当前列表行数:$("#gridid").getGridParam("reccount");
2.获取选中行数据(json):$("#gridid").jqGrid('getRowData', id);
3.刷新列表:$(refreshSelector).jqGrid('setGridParam', { url: ''), postData: ''}).trigger('reloadGrid');
4.选中行:$("#jqGrid").setSelection("1", true); (Toggles a selection of the row with id = rowid; if onselectrow is true (the default) then the event onSelectRow is launched, otherwise it is not.)//true:重新加载表格数据, false:不重新加载表格数据
5.重置选中行:$("#jqgrid").resetSelection(); //Resets (unselects) the selected row(s). Also works in multiselect mode.
6.清除:$("#jqgrid").clearGridData(); //Clears the currently loaded data from grid. If the clearfooter parameter is set to true, the method clears the data placed on the footer row.
7. $("#jqgrid").setCell(rowid,colname,nData,cssp,attrp);
//This method can change the content of particular cell and can set class or style properties. Where:
colname the name of the column (this parameter can be a number (the index of the column) beginning from 0
data the content that can be put into the cell. If empty string the content will not be changed
class if class is string then we add a class to the cell using addClass; if class is an array we set the new css properties via css
properties sets the attribute properies of the cell,
8.获取选中行ID var rowid = $("#jqgrid").jqGrid('getGridParam','selrow');
待续...
http://www.cnblogs.com/dzxw2371/archive/2011/03/04/1970603.html
- JqGrid相关操作备忘
- JqGrid相关操作备忘 方法列表
- JqGrid相关操作备忘 方法列表
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘
- jqGrid的相关操作
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要) .
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要) .
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解
- jQuery学习笔记--JqGrid相关操作 方法列表 备忘 重点讲解(超重要)
- CentOS 5 忘记密码处理方法
- java位运算应用
- 在struts2中使用拦截器(Interceptor)控制登录和权限
- Editing Drive Letter Assignments
- iPhone模拟器消失 解决办法
- JqGrid相关操作备忘
- linux thread model
- oracle 将一个表复制到另外一个表里
- 微软通用的DBHelper
- expr "254G 45G 196G 19% /" : '.* \(.*\)%'
- UDP广播与多播
- Java工程师可能不知道的那些FE潜规则
- ZeroMQ 的模式
- 更新freebsd的ports