New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Events
Updated over 6 months ago
The Telerik UI AppBar for ASP.NET Core exposes the Resize event that allows you to implement any custom logic during the component resizing.
Handling by Handler Name
The following example demonstrates how to subscribe to the Resize event by a handler name.
Razor
@(Html.Kendo().AppBar()
.Name("appbar")
.Events(e => e.Resize("onResize"))
... //Additional configuration
)
<script>
function onResize(e){
// Handle the AppBar Resize event.
};
</script>Handling by Template Delegate
The following example demonstrates how to subscribe to the Resize event by a template delegate.
Razor
@(Html.Kendo().AppBar()
.Name("appbar")
.Events(e => e.Resize(@<text>
function() {
// Handle the Resize event inline.
}
</text>)
)
... //Additional configuration
)