scrollTo

Scrolls to the specified page. Page indices are zero-based.

Parameters

page Number

The page to which will be scrolled.

instant Boolean (default: false)

If set to true, the ScrollView will instantly jump to the specified page without any animation effects.

Example - scrolling instantly and without animation

<div id="scrollView">
    <div data-role="page">Foo</div>
    <div data-role="page">Bar</div>
    <div data-role="page">Baz</div>
    <div data-role="page">Bat</div>
</div>
<script>
var scrollView = $("#scrollView").kendoScrollView().data().kendoScrollView;
scrollView.scrollTo(2); //scrolls to the 3rd page

</script>
In this article
Not finding the help you need? Improve this article