如果datagrid要模拟选中行的效果,不能用selectRow,这个是返回数据
要返回行样式用:
var rowIndex = $("#smsCaseList").datagrid('getRowIndex',id); //获取当前记录所在索引 $('#smsCaseList').datagrid('selectRecord', rowIndex);
如果datagrid要模拟选中行的效果,不能用selectRow,这个是返回数据
要返回行样式用:
var rowIndex = $("#smsCaseList").datagrid('getRowIndex',id); //获取当前记录所在索引 $('#smsCaseList').datagrid('selectRecord', rowIndex);