# Show Tooltip over Scheduler Events

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Telerik UI for ASP.NET MVC Scheduler</td>
 </tr>
 <tr>
  <td>Product Version</td>
  <td>Created with version 2024.4.1112</td>
 </tr>
</table>

## Description

How can I show a Tooltip when hovering over the ASP.NET MVC Scheduler events to provide additional information like start and end time, description, and more?

## Solution

1. Define a [Tooltip](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/layout/tooltip/overview) component that shows when the title of a specified event is hovered.

   ```Razor HtmlHelper
       @(Html.Kendo().Scheduler<MeetingViewModel>()
           .Name("scheduler")
           ...// Additional configuration.
       )

       @(Html.Kendo().Tooltip()
           .For("#scheduler")
           .Filter(".k-event:not(.k-event-drag-hint) > div, .k-task")
           .Position(TooltipPosition.Top)
       )
   ```

2. Create an [external Kendo UI Template](https://docs.telerik.com/kendo-ui/framework/templates/get-started-external) for the content of the Tooltip. You can modify the template content based on your requirements.

   ```Razor HtmlHelper
       @(Html.Kendo().Tooltip()
           .For("#scheduler")
           .Filter(".k-event:not(.k-event-drag-hint) > div, .k-task")
           .Position(TooltipPosition.Top)
           .Width(120)
           .ContentTemplateId("template")
       )
   ```

   ```JS Template
       <script id="template" type="text/x-kendo-template">
           #var element = target.is(".k-task") ? target : target.parent();# // Select the respective target element.
           #var uid = element.attr("data-uid");# // Access the "uid" of the hovered event.
           #var scheduler = target.closest("[data-role=scheduler]").data("kendoScheduler");# // Get a reference to the Scheduler.
           #var model = scheduler.occurrenceByUid(uid);# // Access the data of the hovered event.

           #if(model) {#
           <strong>event start:</strong> #=kendo.format('{0:d}',model.start)#
           <br />
           <strong>event end:</strong> #=kendo.format('{0:d}',model.end)#
           <br />
           <strong>event description:</strong> #=model.description#
           <br />
           #} else {#
           <strong>No event data is available</strong>
           #}#
       </script>
   ```

For a runnable example, refer to the [ASP.NET MVC application](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Areas/SchedulerTooltip) in the [UI for ASP.NET MVC Examples repository](https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master) for how to show a Tooltip when hovering over a Scheduler event.

## More ASP.NET MVC Scheduler Resources

* [ASP.NET MVC Scheduler Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/scheduling/scheduler/overview)

* [ASP.NET MVC Scheduler Demos](https://demos.telerik.com/aspnet-mvc/scheduler/index)

* [ASP.NET MVC Scheduler Product Page](https://www.telerik.com/aspnet-mvc/scheduler)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the Scheduler for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/scheduler)

* [Server-Side API Reference of the Scheduler for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/scheduler)

* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2024-backwards-compatibility)

* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
