# Events

The Telerik UI AppBar for ASP.NET Core exposes the [`Resize` event](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/appbareventbuilder) 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 HtmlHelper
    @(Html.Kendo().AppBar()
        .Name("appbar")
        .Events(e => e.Resize("onResize"))
        ... //Additional configuration
    )

    <script>
        function onResize(e){
            // Handle the AppBar Resize event.
        };
    </script>
```

```Razor TagHelper
    <kendo-appbar name="appbar" on-resize="onResize">
        
    </kendo-appbar>  

    <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 HtmlHelper
    @(Html.Kendo().AppBar()
        .Name("appbar")
        .Events(e => e.Resize(@<text>
            function() {
                // Handle the Resize event inline.
            }
            </text>)
        )
        ... //Additional configuration
    )
```

```Razor TagHelper
    <kendo-appbar name="appbar"
        on-resize="function() {
            // Handle the Resize event inline.
        }">
        
    </kendo-appbar>
```

## See Also

* [Server-Side API of the AppBar HtmlHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/appbar)

* [Server-Side API of the AppBar TagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/taghelpers/appbar)
