easyui中datagrid选中行的效果

如果datagrid要模拟选中行的效果,不能用selectRow,这个是返回数据
要返回行样式用:

 var rowIndex = $("#smsCaseList").datagrid('getRowIndex',id); //获取当前记录所在索引
$('#smsCaseList').datagrid('selectRecord', rowIndex);   

猜你喜欢

转载自weilikk.iteye.com/blog/2317317