refresh

Repaints the ListView using the data available in the DataSource.

Example

<button id="refreshBtn" class="k-button">Refresh</button>
<div id ="listView"></div>
<script>
  $("#listView").kendoListView({
    dataSource: {
      transport: {
        read: {
          url: "https://demos.telerik.com/kendo-ui/service/Products",
          dataType: "jsonp"
        }
      },
      pageSize: 21
    },
    template: "<div style='margin: 8px'>#:ProductName#</div>"
  });
  $("#refreshBtn").click(function(){
    var listView = $("#listView").data("kendoListView");
    // refreshes the ListView
    listView.refresh();
  });
</script>
In this article
Not finding the help you need? Improve this article