Anyone know ho to integrate tooltip in the calendar? I want a RadToolTip pop up on mouse over on a day with an event.
I have the calenday being filled with events from my database and would like a quick preview of the event in the form of a RadTooltip.
I tried the following and it does not work.
Dim monthView As Telerik.Web.UI.Calendar.View.MonthView = DirectCast(RadCalendar1.CalendarView, Telerik.Web.UI.Calendar.View.MonthView)
If e.Day.[Date] >= monthView.MonthStartDate AndAlso e.Day.[Date] <= monthView.MonthEndDate Then
For i As Integer = 0 To table.Rows.Count - 1
Try
Dim eventDate As DateTime = table.Rows(i)("EventDate").ToString()
If e.Day.[Date] = eventDate.Date Then
e.Cell.Text += table.Rows(i)(
"EventName").ToString()
RadToolTipManager1.TargetControls.Add(Button1.ClientID, table.Rows(i)(
"EventName").ToString(), True)
RadToolTipManager1.TargetControls.Add(e.Cell.ClientID, table.Rows(i)(
"EventName").ToString(), True)
End If
Catch ex As Exception
End Try
Next
End If
On mouse over all I get is the date popup and the tooltipmanager never fires off OnAjaxUpdate.
<
telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomRight"Animation="Fade" OnAjaxUpdate="OnAjaxUpdate" Skin="Default" Width="180px" Height="150px"Style="font-size: 18px; text-align: center; font-family: Arial;"></telerik:RadToolTipManager>