content

Update the ScrollView HTML content.

Important: This method is not supported in data bound mode.

Parameters

content String | jQuery

The new ScrollView content.

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


    <script>
    var app = new kendo.mobile.Application();

    function changePages() {
      var scrollview = $("#scrollView").data("kendoMobileScrollView");
      scrollview.content('<div data-role="page">Item1</div><div data-role="page">Item2</div>');
    }
    </script>
In this article