reset

Scrolls the container to the top.

Example

<div data-role="view">
  <a data-role="button" data-click="reset">Reset</a>
   <div data-role="scroller" style="width: 200px; height: 200px" id="scroller">
      <div style="height: 500px">
        Content
      </div>
    </div>
    bar
 </div>

<script>
function reset() {
    $("#scroller").data("kendoMobileScroller").reset();
}

new kendo.mobile.Application();
</script>

Example

 <div data-role="view">

     <div style="height: 1500px">
        Content
     </div>
     <a data-role="button" data-click="reset">Reset</a>
 </div>

<script>
function reset() {
   kendo.mobile.application.scroller().reset();
}

new kendo.mobile.Application();
</script>
In this article
Not finding the help you need?