Actually, it can be done in dataBound as below:
(The code is trying to find from the td in the last column then filter it)
dataBound: function () {
var grid = this;
grid.table.find("tr td:last-child").filter(function () { return $.text([this]) == $("#XXX").val(); }).closest('tr').addClass("k-state-selected");
//save to history state
var stateObj = { id: $("#XXX").val() };
window.history.pushState(stateObj, null, null);
return;
}
}
No comments:
Post a Comment