# Events

The FloatingActionButton for ASP.NET MVC [exposes the `Click()`, `Expand()`, and `Collapse()` events](https://docs.telerik.com/aspnet-core/api/kendo.mvc.ui.fluent/floatingactionbuttoneventbuilder). For a complete example on  FloatingActionButton events, refer to the [demo on using the events of the FloatingActionButton](https://demos.telerik.com/aspnet-mvc/floatingactionbutton/events).

The following example demonstrates how to subscribe to the FloatingActionButton events.

```Razor HtmlHelper
    @(Html.Kendo().FloatingActionButton()
            .Name("fab")
            .Align(FloatingActionButtonAlign.BottomCenter)
            .AlignOffset(ao=>ao.Vertical(50))
            .PositionMode(FloatingActionButtonPositionMode.Fixed)
            .Items(items=>{
                items.Add().Icon("download").Label("Download").Click(onItemClick);
                items.Add().Icon("print").Label("Print").Click(onItemClick);
                items.Add().Icon("envelop").Label("Email").Click(onItemClick);
            })
            .Events(e =>
            {
               e.Click("onClick");
               e.Expand("onExpand");
               e.Collapse("onExpand");
            })
    )

   <script>
        function onClick(e){
            // Handle the FloatingActionButton click event.
        };

        function onExpand(e){
            // Handle the FloatingActionButton expand event.
        };

        function onCollapse(e){
            // Handle the FloatingActionButton collapse event.
        };

        function onItemClick(e){
            // Handle the FloatingActionButton action item event.
        };
    </script>
```

## Next Steps

* [Using the FloatingActionButton Events (Demo)](https://demos.telerik.com/aspnet-mvc/floatingactionbutton/events)

## See Also

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