New to Telerik UI for ASP.NET MVC? Start 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:
- Use the
ShowandHideevents for the Kendo UI for ASP.NET Core ToolTip. - Dynamically update the tooltip content based on the textbox value.
- 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
Positionsetting does not cause focus issues for the textbox. For example, settingTooltipPosition.Bottomcan resolve such conflicts. - If using a
DropDownList, apply a similar approach to dynamically refresh its tooltip content.