Edit this page

refresh

Renders all table rows using the current data items.

Example - refresh the widget

<button id="btn">Refresh</button>
<div id="treelist"></div>
<script>
  var treelist = $("#treelist").kendoTreeList({
    columns: [
      { field: "id" },
      { field: "name" },
      { field: "age" }
    ],
    dataSource: [
      { id: 1, parentId: null, name: "Jane Doe", age: 22, expanded: true },
      { id: 2, parentId: 1, name: "John Doe", age: 24 },
      { id: 3, parentId: 1, name: "Jenny Doe", age: 3 }
    ]
  }).data("kendoTreeList");
  $("#btn").click(function(){
    var treelist = $("#treelist").data("kendoTreeList");
    treelist.dataSource.at(0).name="Marta Stewart";
    treelist.refresh();
  });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy