Thanks to visit codestin.com
Credit goes to www.telerik.com

New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Events

Updated over 6 months ago

The Telerik UI PopOver component for ASP.NET Core exposes the Hide and Show events. You can handle these events to implement custom functionality.

For a complete example on basic PopOver events, refer to the demo on using the events of the PopOver.

Handling by Handler Name

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

Razor
    @(Html.Kendo().PopOver()
        .For("targetElementSelector")
        .Events(e => e.Show("onShow"))
        ... //Additional configuration
    )

    <script>
        function onShow(e){
            // Handle the Show event that triggers when the PopOver shows.
        }
    </script>

Handling by Template Delegate

The following example demonstrates how to subscribe to an event by a template delegate.

Razor
    @(Html.Kendo().PopOver()
        .For("targetElementSelector")
        .Events(e => e.Show(@<text>
            function() {
                // Handle the Show event inline.
            }
            </text>)
        )
        ... //Additional configuration
    )

Next Steps

See Also