I have a grid and I select an item clientside after binding. I wish to scroll to the selected item. The documentation I have found on the telerik site references row.Control.scrollIntoView which is not (or is no longer) a valid construct.
1 Answer, 1 is accepted
0
Vasil
Telerik team
answered on 04 Feb 2011, 03:24 PM
Hi Albert,
If you are using scrollable RadGrid, then please check this help article.
And if you want to change the scroll of your browser window, then you can use this function:
functionScrollToElement(theElement) {
varselectedPosX = 0;
varselectedPosY = 0;
while(theElement != null) {
selectedPosX += theElement.offsetLeft;
selectedPosY += theElement.offsetTop;
theElement = theElement.offsetParent;
}
window.scrollTo(selectedPosX, selectedPosY);
}
Can this function like: ScrollToElement(row); when you want to scroll to the row.