New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Events

The Telerik UI Responsive Panel for ASP.NET MVC exposes Open and Close events that allow you to control the behavior of the UI component.

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

    @(Html.Kendo().ResponsivePanel()
        .Name("sidebar")
        .Events(e => 
        {
            e.Open("onOpen");
            e.Close("onClose");
        })
        ... // Other configuration.
    )

    <script>
        function onOpen(e) {
            console.log(e); // Review the event data.
            // Custom logic before the componen opens.
        }

        function onClose(e) {
            console.log(e); // Review the event data.
            // Custom logic before the componen closes.
        }
    </script>

See Also

In this article