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

PopoverBuilder

Defines the fluent API for configuring the Kendo Popover for ASP.NET MVC.

Methods

Actions(System.Action)

An array of the action buttons

Parameters

configurator - System.Action<PopoverActionFactory>

The action that configures the actions.

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 that configures the body.

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 that configures the header.

Height(System.Double)

The height (in pixels) of the Popover.

Parameters

value - System.Double

The value that configures the 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 that configures the toggleonclick.

Width(System.Double)

The width (in pixels) of the Popover.

Parameters

value - System.Double

The value that configures the width.

Offset(System.Double)

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

Parameters

value - System.Double

The value that configures the offset.

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")
                        )
            )

Filter(System.String)

The selector which to match target child elements for which the Popover will be shown

Parameters

selector - System.String

jQuery selector

Animation(System.Boolean)

Configures the animation effects of the popover.

Parameters

enable - System.Boolean

Animation(System.Action)

Configures the animation effects of the popover.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

ActionsLayout(Kendo.Mvc.UI.PopoverActionLayout)

Defines how the actions buttons will be positioned

Parameters

value - PopoverActionLayout

The value for ActionLayout

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

For(System.String)

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

Parameters

selector - System.String

jQuery selector

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

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

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?