Tooltip Overview

The Kendo UI Tooltip widget displays a popup hint for a given html element. Its content can be defined either as static text, or loaded dynamically via AJAX.

Getting Started

Initialize the Tooltip

The Tooltip can be initialized:

  • For a single element
  • For a container, where child elements are going to represent Tooltip targets

Initialize Tooltip for Single Elements

The example below demonstrates how to create a Tooltip for a single target and initialize it.

<div id="target">
    Some Content

$(document).ready(function() {
    $("#target").kendoTooltip({ content: "Tooltip content" });

Initialize Tooltip for Containers

The example below demonstrates how to create a Tooltip for multiple targets within a container, initialize it using a jQuery selector and specify the filter to match the target elements. By default, the Tooltip content is extracted from the title attribute of the target element.

<div id="container">
    Some <a href="#" title="Some text">Content</a><br />
    Some <a href="#" title="Some other text">More</a> Content <br />

$(document).ready(function() {
    $("#container").kendoTooltip({ filter: "a[title]" });

Show over Disabled Elements

The Kendo UI Tooltip relies on the mouseenter and mouseleave events to work. By design, disabled elements do not fire events. If working with disabled elements is a strict requirement, a possible workaround is to initialize the Tooltip widget over a parent of the disabled element. Note that there must be some empty space between the disabled element and the boundaries of its parent, so that the mouseenter event is fired.

.parent {
    display: inline-block;
    border: 1px solid;
    margin: 2em;
    padding: 0.2em;

<div id="example">

  <span id="btn1-parent" class="parent" style="border-color:#f00;">
    <button id="btn1" class="k-button" disabled="disabled">No tooltip</button>

  <span id="btn2-parent" class="parent" style="border-color:#0c0;">
    <button id="btn2" class="k-button" disabled="disabled">Tooltip works</button>


  $(function() {
    $("#btn1, #btn2-parent").kendoTooltip({
      content: "Hello!",
      position: "right"



Kendo UI Tooltip provides default configuration options that can be set during initialization. Some of the properties that can be overridden and controlled are:

  • Content
  • Position relative to the target (top, bottom, center, left, right)
  • Event on which the Tooltip is going to be displayed
  • Auto-hide behavior
  • Height/Width

The example below demonstrates how to initialize a Tooltip and configure its main properties.

    position: "right",
    height: "300px",
    showOn: "click",
    autoHide: true,
    content: function() {
        return "custom text";
    width: "500px"

Load Content with AJAX

A Kendo UI Tooltip widget provides built-in support for asynchronously loading content from a URL. This URL is expected to return an HTML fragment that can be loaded in a Tooltip content area. If the content passed to the Tooltip includes scripts, they are going to be executed.

The example below demonstrates how to asynchronously load content to the Tooltip.

<div id="target">Content Text</div>

        content: { url: "html-content-snippet.html" }


Existing Instances

Refer to an existing Tooltip instance via the Once a reference has been established, use the Tooltip API to control its behavior.

The example below demonstrates how to access an existing Tooltip instance.

var tooltip = $("#target").data("kendoTooltip");

See Also

In this article
Not finding the help you need? Improve this article