Events
The Telerik UI FileManager for ASP.NET Core exposes multiple events 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.
Handling by Handler Name
The following example demonstrates how to subscribe to events by a handler name.
@(Html.Kendo().FileManager().Name("filemanager")
.Events(events => events.DataBound("onDataBound"))
)
<script>
function onDataBound(e) {
// Handle the DataBound event.
}
</script>
<kendo-filemanager name="filemanager" on-data-bound="onDataBound">
</kendo-filemanager>
<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.
@(Html.Kendo().FileManager().Name("filemanager")
.Events(events => events.DataBound(@<text>
function onDataBound(e){
// Handle the DataBound event inline.
}
</text>))
)
<kendo-filemanager name="filemanager"
on-data-bound="function onDataBound(e){
// Handle the DataBound event inline.
}">
</kendo-filemanager>