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

Events

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.

    @(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>
    @addTagHelper *, Kendo.Mvc

    <kendo-popover for="targetElementSelector" on-show="onShow">
        <!-- additional configuration -->
    </kendo-popover>

    <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.

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

    <kendo-popover for="targetElementSelector" 
        on-show="function() {
            // Handle the Show event inline.
        }">
        <!-- additional configuration -->
    </kendo-popover>

Next Steps

See Also

In this article