refresh

Fires when the ScrollView refreshes.

Event Data

e.pageCount Number

The number of pages.

e.page Number

The current page number (zero-based index).

e.preventDefault Function

If invoked, prevents the change event. The ScrollView stays on the current page.

Example

<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>
 $("#scrollView").kendoScrollView({
      refresh: refresh
});

function refresh(e) {
  console.log("Total: ", e.pageCount, " Current: ", e.page);
  //handle event
}
</script>
In this article
Not finding the help you need? Improve this article