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

PopoverBuilder

Properties

WriteAction - Func

Methods

Animation(System.Boolean)

Configures the animation effects of the popover.

Parameters

enable - System.Boolean

Boolean parameter for setting the Animation configuration.

Example


            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Position(PopoverPosition.Right)
                    .ShowOn(PopoverShowOn.Click)
                    .Animation(true)
            )

Animation(System.Action)

Configures the animation effects of the popover.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

Configuration parameter for setting the Animation.

Example


            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Position(PopoverPosition.Right)
                    .ShowOn(PopoverShowOn.Click)
                    .Animation(a => a.Enable(true))
            )

For(System.String)

The selector which to match the DOM element to which the Popover widget will be instantiated

Parameters

selector - System.String

jQuery selector

Example


            @(Html.Kendo().Popover()
                    .For("#calendar")
                    .Filter("td a")
                    .Position(PopoverPosition.Right)
                    .ShowOn(PopoverShowOn.Click)
            )

Body(Kendo.Mvc.UI.TemplateBuilder)

Parameters

template - TemplateBuilder<TModel>

Actions(System.Action)

An array of the action buttons

Parameters

configurator - System.Action<PopoverActionFactory>

The configurator for the actions setting.

Body(System.String)

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

Parameters

value - System.String

The value for Body

BodyHandler(System.String)

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

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

BodyHandler(System.Func)

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

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Filter(System.String)

Specifies a selector for the elements within the container which will display the Popover.

Parameters

value - System.String

The value for Filter

Header(System.String)

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

Parameters

value - System.String

The value for Header

HeaderHandler(System.String)

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

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

HeaderHandler(System.Func)

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

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Height(System.Double)

The height (in pixels) of the Popover.

Parameters

value - System.Double

The value for Height

ToggleOnClick(System.Boolean)

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

Parameters

value - System.Boolean

The value for ToggleOnClick

ToggleOnClick()

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

Width(System.Double)

The width (in pixels) of the Popover.

Parameters

value - System.Double

The value for Width

Offset(System.Double)

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

Parameters

value - System.Double

The value for Offset

ActionsLayout(Kendo.Mvc.UI.PopoverActionsLayout)

Defines how the actions buttons will be positioned

Parameters

value - PopoverActionsLayout

The value for ActionsLayout

Position(Kendo.Mvc.UI.PopoverPosition)

The position that is relative to the target element at which the Popover will be shown.

Parameters

value - PopoverPosition

The value for Position

ShowOn(Kendo.Mvc.UI.PopoverShowOn)

Defines when the Popover will be shown.

Parameters

value - PopoverShowOn

The value for ShowOn

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<PopoverEventBuilder>

The client events action.

Example


            @(Html.Kendo().Popover()
                  .Name("Popover")
                  .Events(events => events
                      .Show("onShow")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean
In this article
Not finding the help you need?