refresh

Fires when widget refreshes

Event Data

e.pageCount Number

The number of pages

e.page Number

The current page number (zero based index)

Example

<div data-role="view">
  <div id="scrollView" data-role="scrollview" data-refresh="refresh">
    <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>
</div>

<script>
var app = new kendo.mobile.Application();
function refresh(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("Total: ", e.pageCount, " Current: ", e.page);
  //handle event
}
</script>
In this article