I have a RadSplitter which house 2 vertical RadPanes both with scroll bars.
The first pane has a RadTreeView inside a .Net User control and the second pane has an IFrame.
I need to set focus on a particular node in the RadtreeView when the page is loaded so I don't have to scroll endlessly to reach that node when the page is first loaded.
I tried using the following approach but it is not working :
function scrollToNode(){
var selected = $(".rtSelected");
if(selected.length > 0){
var TotalScrollNeeded = selected.offset().top
- $("#radTree").offset().top
+ $("#radTree").scrollTop();
$("#radTree").animate({ scrollTop: TotalScrollNeeded }, 1000);
}