Prepares the ScrollView for safe removal from the DOM. Detaches all event handlers and removes the attributes to avoid memory leaks. Calls the destroy method of any child Kendo UI widgets.

The destroy method does not remove the ScrollView element from the DOM.


<div id="scrollView">
  <div data-role="page">Foo</div>
  <div data-role="page">Bar</div>


function destroyScrollView() {
  var scrollView = $("#scrollView").data("kendoScrollView");
In this article
Not finding the help you need? Improve this article