This question is locked. New answers and comments are not allowed.
Is there by any chance an easier way to select a row by the datakey?
Thanks for the help
Thanks for the help
/** * Select a row in the grid */ function selectRowById(id) { var grid = $("#MitarbeiterGrid").data("tGrid"); $.each(grid.data, function (index, value) { if (value.MitarbeiterId == id) { // select row if (grid.$rows()[index].className == "t-alt") { grid.$rows()[index].className = "t-alt t-state-selected"; } else { grid.$rows()[index].className = "t-state-selected"; } } }); }