content

Updates the HTML content of the scrollView.

The content method is not supported in the data-bound mode.

Parameters

content String | jQuery

The new ScrollView content.

Example - changing the content after initialization

<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({
    velocityThreshold: 2
});

var scrollview = $("#scrollView").data("kendoScrollView");
scrollview.content('<div data-role="page">Item1</div><div data-role="page">Item2</div>');
</script>
In this article
Not finding the help you need? Improve this article