# Events

The DropDownButton component [exposes the `Click()`, `Open()`, and `Close()` events](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/dropdownbuttoneventbuilder) that you can handle and further customize the functionality of the component.

For a complete example on basic DropDownButton events, refer to the [demo on using the events of the DropDownButton](https://demos.telerik.com/aspnet-mvc/dropdownbutton/events).

```Razor HtmlHelper
    @(Html.Kendo().DropDownButton()
        .Name("dropDownButton")
        .Text("User Settings")
        .Icon("user")
        .ThemeColor(ThemeColor.Primary)
        .FillMode(FillMode.Solid)
        .Items(items=>{
            items.Add().Id("profile").Text("My Profile").Icon("image");
            items.Add().Id("friend-request").Text("Friend Requests").Icon("tell-a-friend");
            items.Add().Id("settings").Text("Account Settings").Icon("gear");
            items.Add().Id("support").Text("Support").Icon("question-circle");
            items.Add().Id("logout").Text("Log Out").Icon("logout");
        })
        .Events(e=>e.Click("onClick").Open("onOpen").Close("onClose"))
    )

    <script>
        function onClick(e) {
            console.log("event :: click (#" + e.id + ")" );
        }

        function onOpen(e) {
            console.log("event :: open" );
        }

        function onClose(e) {
            console.log("event :: close" );
        }
    </script>
```

## Next Steps

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

## See Also

* [Using the API of the DropDownButton for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/dropdownbutton/api)
* [DropDownButton Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/dropdownbutton)
* [DropDownButton Client-Side API](https://docs.telerik.com/kendo-ui/api/ui/dropdownbutton)
