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

TooltipSettingsBuilder

Methods

Position(Kendo.Mvc.UI.TooltipPosition)

The position (relative to the target) at which the Tooltip will be shown

Parameters

position - TooltipPosition

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

Example


            @(Html.Kendo().Tooltip()
                        .For("#element")
                        .Position(TooltipPosition.Bottom)
            )

ShowAfter(System.Int32)

The inverval in milliseconds, after which the Tooltip will be shown

Parameters

milliseconds - System.Int32

Specifies the delay (in milliseconds) before the Tooltip shows. This option is ignored if showOn is set to click or focus.

Example


            @(Html.Kendo().Tooltip()
                        .For("#element")
                        .ShowAfter(200)
            )

Callout(System.Boolean)

Determines if callout should be visible

Parameters

show - System.Boolean

Specifies if the Tooltip callout will be displayed.

Example


            @(Html.Kendo().Tooltip()
                        .For("#element")
                        .Callout(false)
            )

ShowOn(Kendo.Mvc.UI.TooltipShowOnEvent)

The event on which the Tooltip will be shown

Parameters

eventName - TooltipShowOnEvent

The event on which the Tooltip will be shown.

Example


            @(Html.Kendo().Tooltip()
                        .For("#element")
                        .ShowOn(TooltipShowOnEvent.Click)
            )

AutoHide(System.Boolean)

Determines if tooltip should be automatically hidden, or a close button should be present

Parameters

value - System.Boolean

Specifies if the Tooltip will be hidden when the mouse leaves the target element.

Example


            @(Html.Kendo().Tooltip()
                        .For("#element")
                        .AutoHide(true)
            )

Events(System.Action)

Parameters

clientEventsAction - System.Action<TooltipEventBuilder>

LoadContentFrom(System.Web.Routing.RouteValueDictionary)

Sets the Url, which will be requested to return the content.

Parameters

routeValues - System.Web.Routing.RouteValueDictionary

The route values of the Action method.

Example


             @( Html.Kendo().Tooltip()
                    .For("#element")
                    .LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary());
            )

LoadContentFrom(System.String,System.String)

Sets the Url, which will be requested to return the content.

Parameters

actionName - System.String

The action name.

controllerName - System.String

The controller name.

Example


             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .LoadContentFrom("AjaxView_OpenSource", "Tooltip")
            )

LoadContentFrom(System.String,System.String,System.Object)

Sets the Url, which will be requested to return the content.

Parameters

actionName - System.String

The action name.

controllerName - System.String

The controller name.

routeValues - System.Object

Route values.

Example


             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .LoadContentFrom("AjaxView_OpenSource", "Tooltip", new { id = 10})
            )

LoadContentFrom(System.String,System.String,System.Web.Routing.RouteValueDictionary)

Parameters

actionName - System.String
controllerName - System.String
routeValues - System.Web.Routing.RouteValueDictionary

LoadContentFrom(System.String)

Sets the Url, which will be requested to return the content.

Parameters

value - System.String

The url.

Example


             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .LoadContentFrom(Url.Action("AjaxView_OpenSource", "Tooltip"))
            )

Content(System.String)

Sets the HTML content which the tooltip should display as a string.

Parameters

value - System.String

The action which renders the content.

Example


             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Content("<strong> First Item Content</strong>")
            )

ContentTemplateId(System.String)

Sets the id of kendo template which will be used as tooltip content.

Parameters

value - System.String

The id of the template

Example


             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Content("template")
            )

ContentTemplateView(System.Web.Mvc.MvcHtmlString)

Sets the id of kendo template which will be used as tooltip content.

Parameters

value - System.Web.Mvc.MvcHtmlString

The id of the template

Example


             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .ContentTemplateView(Html.Partial("template"))
            )

ContentHandler(System.Func)

Sets JavaScript function which to return the content for the tooltip.

Parameters

handler - System.Func<Object,Object>

Content(Kendo.Mvc.UI.TemplateBuilder)

Parameters

template - TemplateBuilder<TModel>

ContentHandler(System.String)

Sets JavaScript function which to return the content for the tooltip.

Parameters

handler - System.String

JavaScript function name

Animation(System.Boolean)

Configures the animation effects of the window.

Parameters

enable - System.Boolean

Whether the component animation is enabled.

Example


            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Animation(false)
            )            

Animation(System.Action)

Configures the animation effects of the panelbar.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

The action that configures the animation.

Example


            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Animation(animation => animation.Expand)
            )            

Width(System.Int32)

Sets the width of the tooltip.

Parameters

width - System.Int32

The width (in pixels) of the Tooltip.

Example


            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Width(100)
            )            

Height(System.Int32)

Sets the height of the tooltip.

Parameters

height - System.Int32

The height (in pixels) of the Tooltip.

Example


            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Height(100)
            )            

HideAfter(System.Int32)

The interval in milliseconds, after which the Tooltip will be hidden

Parameters

milliseconds - System.Int32

Specifies the delay (in milliseconds) before the Tooltip is hidden.

Example


            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .HideAfter(200)
            )            

Offset(System.Int32)

Specifies the offset in pixels between the Tooltip and the anchor.

Parameters

offset - System.Int32

Specifies the offset (in pixels) between the Tooltip and the anchor.

Example


            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Offset(50)
            )            

In this article
Not finding the help you need?