jqGrid单选一行实现

以下三个属性缺一不可:

 

[html]  view plain  copy
 
  在CODE上查看代码片 派生到我的代码片
  1. multiselect: true,  
  2. multiboxonly:true,  
  3. beforeSelectRow: beforeSelectRow,//js方法  
 
[html]  view plain  copy
 
  在CODE上查看代码片 派生到我的代码片
  1. function beforeSelectRow()  
  2.     {  
  3.         $("#jqgridId").jqGrid('resetSelection');  
  4.         return(true);  
  5.     }  


这样就可以完成只选择一行记录的操作了。

猜你喜欢

转载自xiaoqiufeng.iteye.com/blog/2360776
今日推荐