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

Popover

Class

Kendo UI Popover component

Definition

Constructors

Initializes a new instance of the Popover class.

C#
public Popover(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

An array of the action buttons

C#
public List<PopoverAction> Actions { get; set; }
C#
public PopoverActionLayout? ActionsLayout { get; set; }
C#
public PopupAnimation Animation { get; set; }

Defines a kendo template that will be used as the card body inside the popover component.

C#
public string Body { get; set; }
C#
public ClientHandlerDescriptor BodyHandler { get; set; }
C#
public string Container { get; set; }
C#
public string Filter { get; set; }

Defines a kendo template that will be used as the card header inside the popover component.

C#
public string Header { get; set; }
C#
public ClientHandlerDescriptor HeaderHandler { get; set; }

The height (in pixels) of the Popover.

C#
public double? Height { get; set; }

Specifies the offset (in pixels) between the Popover and the anchor. The offset is rendered from the callout arrow.

C#
public double? Offset { get; set; }
C#
public PopoverPosition? Position { get; set; }
C#
public PopoverShowOn? ShowOn { get; set; }

Defines a value indicating whether the popover will show/hide only when clicking on the target element.

C#
public bool? ToggleOnClick { get; set; }

The width (in pixels) of the Popover.

C#
public double? Width { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)