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

Scroll a pane in a split view to top

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 15 Mar 2013, 10:41 AM
How do I scroll to top, in a pane in a split view, from javascript?

I have tried several hours with different things but cant get it to work.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 19 Mar 2013, 09:05 AM
Hi Andreas,

I suggest you to use the reset method of the scroller. 
function onClick(e) {
    var pane = $("#side-pane").data("kendoMobilePane");
    pane.view().scroller.reset();
}

For your convenience I prepared a small example: http://jsbin.com/ugitur/4/edit

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Andreas
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or