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

TooltipBuilder

Defines the fluent interface for configuring the Tooltip component.

Methods

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

Filter(System.String)

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

Parameters

selector - System.String

jQuery selector

Deferred()

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

ToComponent()

Returns the internal view component.

Render()

Renders the component.

ToHtmlString()

ToClientTemplate()

Position(Kendo.Mvc.UI.TooltipPosition)

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

Parameters

position - TooltipPosition

The position

ShowAfter(System.Int32)

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

Parameters

milliseconds - System.Int32

Callout(System.Boolean)

Determines if callout should be visible

Parameters

show - System.Boolean

ShowOn(Kendo.Mvc.UI.TooltipShowOnEvent)

Parameters

eventName - TooltipShowOnEvent

AutoHide(System.Boolean)

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

Parameters

value - System.Boolean

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

ContentHandler(System.Func)

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

Parameters

handler - System.Func<Object,Object>

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

Height(System.Int32)

Sets the height of the tooltip.

Parameters

height - System.Int32

HideAfter(System.Int32)

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

Parameters

milliseconds - System.Int32

Offset(System.Int32)

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

Parameters

offset - System.Int32
In this article
Not finding the help you need?