//鼠标悬停时修改grid行背景色
grid.on("mouseover", ".k-grid-content tr", function (e) {
var uid = $(this).attr("data-uid");
//得到所选行数据
var row = $("#grid").data("kendoGrid").dataSource.getByUid(uid);
//整行加颜色
$(this).css("background-color", "#CDC8B1");
console.log(row)
});
//鼠标离开时取消grid行背景色
grid.on("mouseout", ".k-grid-content tr", function (e) {
var uid = $(this).attr("data-uid");
//得到所选行数据
var row = $("#grid").data("kendoGrid").dataSource.getByUid(uid);
//整行加颜色
$(this).css("background-color", "");
console.log(row)
});