Hi,
I am trying to use a RadTooltipManager for a scheduler application. I add to the targetcontrols collection programmatically in the appointmentcreated event handler, however when the page runs any default tooltips on the page (i.e. my RadCalendar control) shows the RadTooltip even though the AutoTooltipify property is set.
Example code:
UI:
Code:
Regards
I am trying to use a RadTooltipManager for a scheduler application. I add to the targetcontrols collection programmatically in the appointmentcreated event handler, however when the page runs any default tooltips on the page (i.e. my RadCalendar control) shows the RadTooltip even though the AutoTooltipify property is set.
Example code:
UI:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<asp:Content ID="Content1" ContentPlaceHolderID="cntrlMainPlaceHolder" Runat="Server"> |
<asp:UpdatePanel ID="cntrlTest" UpdateMode="Conditional"> |
<ContentTemplate> |
<telerik:RadCalendar ID="cntrlDiaryCalendar" AutoPostBack="true" EnableMultiSelect="false" Width="100%" runat="server" /> |
</ContentTemplate> |
</asp:UpdatePanel> |
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional"> |
<ContentTemplate> |
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" Skin="WebBlue" |
EnableEmbeddedSkins="True" TimeZoneOffset="03:00:00" SelectedDate="2008-09-11" |
DayStartTime="08:00:00" DayEndTime="18:00:00" |
DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" |
DisplayDeleteConfirmation="false"> |
<TimelineView UserSelectable="false" /> |
<AppointmentTemplate> |
XX |
</AppointmentTemplate> |
</telerik:RadScheduler> |
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="300" Height="150" |
Skin="WebBlue" Animation="None" Position="BottomRight" Sticky="true" Text="Loading..." AutoTooltipify="false" |
> |
<TargetControls> |
<telerik:ToolTipTargetControl TargetControlID="xx" IsClientID="true" /> |
</TargetControls> |
</telerik:RadToolTipManager> |
<asp:Timer ID="tmrTest" Interval="1" Enabled="true" runat="server" /> |
</ContentTemplate> |
</asp:UpdatePanel> |
</asp:Content> |
Code:
Partial Class Test |
Inherits System.Web.UI.Page |
Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate |
End Sub |
Protected Sub RadScheduler1_AppointmentCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadScheduler1.AppointmentCreated |
RadToolTipManager1.TargetControls.Add(e.Appointment.ClientID, True) |
End Sub |
Protected Sub tmrTest_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrTest.Tick |
tmrTest.Enabled = False |
getdata() |
End Sub |
Private Sub getdata() |
Dim oItems As New List(Of Appointment) |
oItems.Add(New Appointment(1, "testing", Date.Now)) |
RadScheduler1.DataSource = oItems |
RadScheduler1.DataBind() |
End Sub |
End Class |
Public Class Appointment |
Private _id As Integer = 0 |
Private _Subject As String = String.Empty |
Private _Start As DateTime = Date.Now |
Public ReadOnly Property Id() As Integer |
Get |
Return _id |
End Get |
End Property |
Public ReadOnly Property Subject() As String |
Get |
Return _Subject |
End Get |
End Property |
Public ReadOnly Property Start() As DateTime |
Get |
Return _Start |
End Get |
End Property |
Public ReadOnly Property [End]() As DateTime |
Get |
Return Start.AddHours(1) |
End Get |
End Property |
Public Sub New(ByVal Id As Integer, ByVal Subject As String, ByVal Start As DateTime) |
_id = Id |
_Subject = Subject |
_Start = Start |
End Sub |
End Class |
Regards