$(#grid).datagird({
onLoadSuccess:function(){//当数据加载成功时触发
var userIds = $("#userIds").val();//隐藏字段获取值该字符串有,号分隔
var userIda = userIds.split(',');
for(var i in userIda){
$('#grid').datagrid('selectRecord',userIda[i]);//根据id选中行
}
}
});
onLoadSuccess:function(){//当数据加载成功时触发
var userIds = $("#userIds").val();//隐藏字段获取值该字符串有,号分隔
var userIda = userIds.split(',');
for(var i in userIda){
$('#grid').datagrid('selectRecord',userIda[i]);//根据id选中行
}
}
});