New to Telerik UI for ASP.NET MVC? Download free 30-day trial


The Telerik UI TreeView for ASP.NET MVC exposes multiple events that allow you to control and customize the behavior of the UI component.

For a complete example on basic TreeView events, refer to the demo on using the events of the TreeView.

Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

            .Events(events => events
            .DataSource(dataSource => dataSource
                .Read(read => read
                    .Action("Employees", "treeview")

    <script type="text/javascript">
            function onChange(e) {
            console.log('Selected node changed to:',;

        function onSelect(e) {
            console.log('Selected node:', e.node);

        function onCheck(e) {
            console.log('Checked node:', e.node);

        function onCollapse(e) {
            console.log('Collapsed node:', e.node);

        function onExpand(e) {
            console.log('Expanded node:', e.node);

        function onDragStart(e) {
            console.log('Started dragging:', e.sourceNode);

        function onDrag(e) {
            console.log("Dragging:", e.sourceNode);

        function onDragEnd(e) {
            console.log("Finished dragging:", e.sourceNode);

        function onDrop(e) {
            console.log("Dropped:", e.sourceNode);

        function onLoadCompleted(e) {
            console.log("Load Completed: ",, function (item) { return item.Name; }).join(", "));

Next Steps

See Also

In this article