# Events

The Telerik UI FileManager for ASP.NET MVC exposes multiple [events](https://docs.telerik.com/aspnet-mvc/api/kendo.mvc.ui.fluent/filemanagereventbuilder) that allow you to control and customize the behavior of the UI component.

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

## Handling by Handler Name

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

```Razor HtmlHelper
    @(Html.Kendo().FileManager().Name("filemanager")
        .Events(events => events.DataBound("onDataBound"))
    )


    <script>
        function onDataBound(e) {
            // Handle the DataBound event.
        }
    </script>
```

## Handling by Template Delegate

The following example demonstrates how to subscribe to events by using a template delegate.

```Razor HtmlHelper
    @(Html.Kendo().FileManager().Name("filemanager")
        .Events(events => events.DataBound(@<text>
            function onDataBound(e){
                // Handle the DataBound event inline.
            }
        </text>))
    )

```

## Next Steps

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

## See Also

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