New to Telerik UI for ASP.NET MVCStart a free 30-day trial

Refreshing Generic Textbox Tooltip and Suppressing Empty Tooltip Content

Updated on Jan 15, 2026

Environment

Product Kendo UI for ASP.NET Core ToolTip
Version 2025.4.1217

Description

I want to create a generic tooltip for textboxes in a view and refresh the tooltip content dynamically to reflect changes to the textbox value. Additionally, I need a generic way to suppress the tooltip when the textbox content is empty.

This knowledge base article also answers the following questions:

  • How to dynamically update Kendo UI ToolTip content for a textbox?
  • How to suppress Kendo UI ToolTip when textbox content is empty?
  • How to manage tooltip visibility for textboxes in Kendo UI for ASP.NET Core?

Solution

To achieve a dynamic refresh of the tooltip content and suppress it when the textbox content is empty, follow these steps:

  1. Use the Show and Hide events for the Kendo UI for ASP.NET Core ToolTip.
  2. Dynamically update the tooltip content based on the textbox value.
  3. Apply CSS to hide the tooltip when the textbox value is empty.

Here is an example implementation:

csharp
@(Html.Kendo().Tooltip()
    .For("input[type='text']")
    .Position(TooltipPosition.Top)
    .Width(350)
    .Height(30)
    .Events(e => e.Show("ttOnShow").Hide("ttOnHide"))
)

Additional Notes:

  • Ensure that the tooltip's Position setting does not cause focus issues for the textbox. For example, setting TooltipPosition.Bottom can resolve such conflicts.
  • If using a DropDownList, apply a similar approach to dynamically refresh its tooltip content.

See Also