refresh
Renders all table rows by using the current data items.
Example - refreshing 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>