Dear,
How can scroll grid to k-state-selected row ?
I'll try this but it's not work:
In my case I change row selected in this way:
But I want scroll grid at selected row.
Thanks,
Rinaldo
How can scroll grid to k-state-selected row ?
I'll try this but it's not work:
var iframe = $("#myGrid");
var tr = iframe.contents().find("tr[class=k-state-selected]");
$(iframe.contentWindow || iframe.contentDocument).scrollTop(tr.offset().top);
In my case I change row selected in this way:
var myGrid = $("#myGrid").data("kendoGrid");
myGrid.select(myGrid.tbody.find("td .key:contains('" + myKey + "')").closest("tr"));
But I want scroll grid at selected row.
Thanks,
Rinaldo