• pullHandled ()
    Indicate that the pull event is handled (i.e. data from the server has been retrieved).

    Custom pull to refresh view scroll handling

     <div data-role="view" data-init="initPullToRefreshScroller">
         <h2 id="pull-to-refresh-clock"></h2>
     </div>
    <script>
    
     function updateClock() {
         pullTime = kendo.toString(new Date(), "hh:mm:ss tt" );
         $("#pull-to-refresh-clock").html("Last update at " + pullTime + ". <br /> Pull to refresh.");
     }
    
     function initPullToRefreshScroller(e) {
         var scroller = e.view.scroller;
    
         scroller.setOptions({
             pullToRefresh: true,
             pull: function() {
                 updateClock();
                 setTimeout(function() { scroller.pullHandled(); }, 400);
             }
         })
     }
    </script>
  • reset ()
    Scrolls the container to the top.
  • scrollHeight ()
    Returns the height in pixels of the scroller content.
  • scrollTo (x, y)
    Scrolls the container to the specified location

    Parameters

    x: Number
    The horizontal offset in pixels to scroll to.
    y: Number
    The vertical offset in pixels to scroll to.
  • scrollWidth ()
    Returns the width in pixels of the scroller content.