Edit this page

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);
         }
     })
 }

  new kendo.mobile.Application();
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy