Edit this page

remove

Removes a node from the widget.

Parameters

node jQuery |Element |String

The node that is to be removed.

Example

<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
  dataSource: [
    { text: "foo", items: [
      { text: "bar" }
    ] }
  ]
});

var treeview = $("#treeview").data("kendoTreeView");

var bar = treeview.findByText("bar");

treeview.remove(bar);

console.log($("#treeview").find(".k-item").length); // logs 1
</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