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

ScrollTo

methods

Scrolls to a visible node in the TreeView. Behaves in a similar way to calling scrollIntoView({ block: 'nearest' }) method of the item element. The scrollTo method will not expand collapsed parents, hence will not scroll if the node is not visible.

Parameters:nodejQuery

The node to which the TreeView should scroll and make it visible.

<div id="treeview" style="max-height: 90px"></div>
<script>
$("#treeview").kendoTreeView({
  dataSource: [
    {
      text: "foo",
      expanded: true,
      items: [
        { text: "bar" },
        { text: "biz" },
        { text: "baz" }
      ]
    }
  ]
});

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

var baz = treeview.findByText("baz");
treeview.scrollTo(baz);
</script>
Not finding the help you need?
Contact Support