New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Diagram Tooltips
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Material 2
- Material 2 Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
- Main Dark
Also available for:
CLIENT-SIDE API HTML HELPER APIDescription
The Telerik UI for ASP.NET Core Diagram component provides built-in tooltip functionality that displays contextual information when hovering over shapes and connections.
This demo showcases how to implement custom tooltips for both diagram shapes and connections. The tooltips display detailed employee information for shapes and relationship details for connections in an organizational hierarchy.
The Diagram supports the following tooltip configurations:
-
Shape Tooltips—Use theShapeTemplateHandlermethod to define a JavaScript function that returns custom HTML content for shape tooltips. In this example, shape tooltips display employee details including name, title, department, contact information, and tenure. -
Connection Tooltips—Use theConnectionTemplateHandlermethod to define a JavaScript function that returns custom HTML content for connection tooltips. In this example, connection tooltips show the reporting relationship between employees.
The tooltip templates can access shape and connection data through the template context, allowing you to create rich, data-driven tooltip experiences that enhance the usability of your diagrams.