# Events

You can subscribe to [all DropDownTree events](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui.fluent/dropdowntreebuilder#eventssystemaction) and then use them to further customize the behavior of the control.

For an example on basic DropDownTree events, refer to the [demo on using the events of the DropDownTree](https://demos.telerik.com/aspnet-mvc/dropdowntree/events).

```Razor HtmlHelper
    @(Html.Kendo().DropDownTree()
        .Name("dropdowntree")
        .DataTextField("Name")
        .DataSource(dataSource => dataSource
            .Read(read => read
                .Action("Employees", "Home")
            )
        )
        .Events(events => events
            .DataBound("onDataBound")
            .Change("onChange")
            .Select("onSelect")
            .Close("onClose")
            .Open("onOpen")
            .Filtering("onFiltering")
        )
    )

```

```JavaScript
    <script type="text/javascript">
        function onDataBound(e) {
            console.log('DropDownTree instance:', e.sender);
        }

        function onChange(e) {
            console.log('Selected node changed to:', e.sender.select());
        }

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

        function onClose(e) {
            console.log('DropDownTree instance:', e.sender);
        }

        function onOpen(e) {
            console.log('DropDownTree instance:', e.sender);
        }

        function onFiltering(e) {
            console.log('Folter:', e.filter);
        }
    </script>
```

## Next Steps

* [API for Configuring the DropDownTree Events](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/dropdowntreeeventbuilder)
* [Using the DropDownTree Events (Demo)](https://demos.telerik.com/aspnet-mvc/dropdowntree/events)

## See Also

* [Using the API of the DropDownTree for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/dropdowntree/api)
