New to Telerik UI for BlazorStart a free 30-day trial

A contextual popover that shows header, body, and optional action buttons next to an anchor element. Target via AnchorSelector, position with Position, offset using Offset, and collision handling through Collision. Configure callout visibility with ShowCallout, trigger behavior via ShowOn, size using Width/Height, and animations through AnimationType/AnimationDuration. Content slots: PopoverHeader, PopoverContent, PopoverActions (layout via ActionsLayout). Programmatic API: Show(), Hide(), Refresh(). Children: PopoverActions, PopoverHeader, PopoverContent.

Definition

Constructors

C#
public TelerikPopover()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
public override void Dispose()

Overrides: BaseComponent.Dispose()

Closes the popup.

C#
public void Hide()
C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)

Refreshes the popup element and its position.

C#
public void Refresh()
C#
public override Task SetParametersAsync(ParameterView parameters)
Parameters:parametersParameterViewReturns:

Task

Overrides: ComponentBase.SetParametersAsync(ParameterView)

Opens the popup.

C#
public void Show()

Properties

Defines the layout of the actions button in the footer. Default value is Stretch. The possible options are Stretch, Start, End, Center.

C#
[Parameter]
public PopoverActionsLayoutAlign ActionsLayout { get; set; }

Specifies the selector of the element that will be used as an anchor. The popover will open next to that element.

C#
[Parameter]
public string AnchorSelector { get; set; }

The duration of the open/close animation in milliseconds.

C#
[Parameter]
public int AnimationDuration { get; set; }

The effect to use for playing the open/close animation.

C#
[Parameter]
public AnimationType AnimationType { get; set; }

Specifies the behavior of the Popover when it does not fit in the viewport. Valid values are: Flip - the popover will flip if there is sufficient available space on the opposite side. Fit - the popover will be shifted (moved) until it is fully visible. By default, the Popover flips vertically when there is a collision.

C#
[Parameter]
public PopoverCollision Collision { get; set; }

The height of the popover.

C#
[Parameter]
public string Height { get; set; }

Specifies the offset value, in pixels, to be added to the popover position, creating a blank space between the popover and the anchor.

C#
[Parameter]
public double Offset { get; set; }

Container tag for the popover action buttons.

C#
[Parameter]
public RenderFragment PopoverActions { get; set; }

The body content of the popover.

C#
[Parameter]
public RenderFragment PopoverContent { get; set; }

The header content of the popover.

C#
[Parameter]
public RenderFragment PopoverHeader { get; set; }

The position that is relative to the target element at which the Popover will be shown. The supported values are: Top Bottom Left Right The default value is Top.

C#
[Parameter]
public PopoverPosition Position { get; set; }

Defines whether the Popover callout will be displayed.

C#
[Parameter]
public bool ShowCallout { get; set; }

Define the event that triggers the opening of the popover. The supported values are: Click MouseEnter If the value is set to Click the popover will close when the user clicks outside the popover. If the value is set to MouseEnter the popover will close when the pointer leaves the popover.

C#
[Parameter]
public PopoverShowOn? ShowOn { get; set; }

The widht of the popover.

C#
[Parameter]
public string Width { get; set; }