This is a migrated thread and some comments may be shown as answers.

Scroll grid to k-state-selected

0 Answers 215 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rinaldo
Top achievements
Rank 1
Rinaldo asked on 19 Oct 2012, 08:58 AM
Dear,
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

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Rinaldo
Top achievements
Rank 1
Share this question
or