Hi,
I am trying to get the functionality seen here:
http://www.jtable.org/
If you add or edit a row, there is some nice css that highlights the row.
What I have tried so far (using the MVC wrappers):
.Events(e => e
.Save("onSave")
)
function onSave(e) {
var grid = $("#grid").data("kendoGrid");
var id = e.model.ID;
var uid = grid.dataSource.get(id).uid;
$("#grid tbody").find("tr[data-uid=" + uid + "]").addClass("row-changed");
}
.row-changed {
background-color: red;
}
Nothing is happening :(
Thanks!
I am trying to get the functionality seen here:
http://www.jtable.org/
If you add or edit a row, there is some nice css that highlights the row.
What I have tried so far (using the MVC wrappers):
.Events(e => e
.Save("onSave")
)
function onSave(e) {
var grid = $("#grid").data("kendoGrid");
var id = e.model.ID;
var uid = grid.dataSource.get(id).uid;
$("#grid tbody").find("tr[data-uid=" + uid + "]").addClass("row-changed");
}
.row-changed {
background-color: red;
}
Nothing is happening :(
Thanks!