I want when user clciked a link, he can go back to the previous selected page and selected row of kendo grid. I can get his selected page number without problem by
$("#homesGrid").data("kendoGrid").dataSource.page();
In databound event of Kendo Grid, I cannot set his selected page. I can only set his selected row by
$("#homesGrid").data("kendoGrid").dataSource.page(2); ====> error
var data = mygrid.dataSource.data();
$.each(data, function (i, row) {
if (row.Fcode == fcode) {
$('tr[data-uid="' + row.uid + '"]').addClass("k-state-selected");
}
Is the code of that line incorrect or is that I cannot set it in databound event of Kendo Grid?