New to Kendo UI for jQueryStart a free 30-day trial

Inserts a node after a specified node. This method may also be used to reorder nodes.

Parameters:nodeDataObject

A JSON-formatted string or selector that specifies the node to be inserted.

referenceNodejQuery

The node that will precede the newly-appended node.

Returns:jQuery

The inserted <li> element, wrapped in a jQuery object.

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

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

// insert "bar" after "foo"
treeview.insertAfter({ text: "bar" }, foo);

// move the node "foo" after the node "bar"
treeview.insertAfter(foo, treeview.findByText("bar"));
</script>
Not finding the help you need?
Contact Support