Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadCalendar tooltips not rendering

$
0
0
Hi Viktor,

I was able to copy over my calendar code and got the tooltip running PARTIALLY. I have included my new test page below (mike.aspx), which shows what I am dealing with. Per the attached screenshot, it appears that despite the fact that the tooltip is set to show on yesterday, today and tomorrow, the only day that it actually renders the custom content is on yesterday, in the first of the three displayed views of the calendar.

Any thoughts as to why this would happen? I think that this is likely the cause of the issue for me though, so we are getting closer!

Here is the content page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="mike.aspx.vb" Inherits="mike" %>
 
<!DOCTYPE html>
 
<headrunat="server">
    <title></title>
</head>
<body>
    <formid="form1"runat="server">
        <div>
            <telerik:RadScriptManagerrunat="server"ID="RadScriptManager1">
            </telerik:RadScriptManager>
            <telerik:RadCalendarID="datCMSReport"runat="server"EnableWeekends="True"FastNavigationNextText="&lt;&lt;"SelectedDate=""MultiViewColumns="3"AutoPostBack="false"CssClass="RadCalendarMultiView RadCalendarMultiView_Default">
                <SpecialDays>
                    <telerik:RadCalendarDayDate=""Repeatable="Today">
                        <ItemStyleCssClass="rcToday"/>
                    </telerik:RadCalendarDay>
                </SpecialDays>
                <WeekendDayStyleCssClass="rcWeekend"/>
                <CalendarTableStyleCssClass="rcMainTable"/>
                <OtherMonthDayStyleCssClass="rcOtherMonth"/>
                <OutOfRangeDayStyleCssClass="rcOutOfRange"/>
                <DisabledDayStyleCssClass="rcDisabled"/>
                <SelectedDayStyleCssClass="rcSelected"/>
                <DayOverStyleCssClass="rcHover"/>
                <FastNavigationStyleCssClass="RadCalendarMonthView RadCalendarMonthView_Default"/>
                <ViewSelectorStyleCssClass="rcViewSel"/>
            </telerik:RadCalendar>
 
            <telerik:RadToolTipManagerID="RadToolTipManager1"runat="server"
                Width="250px"Height="300px"
                RelativeTo="Element"
                OffsetX="15"
                OnAjaxUpdate="RadToolTipManager1_AjaxUpdate">
            </telerik:RadToolTipManager>
        </div>
    </form>
</body>
</html>


and here is the code behind:

Imports Telerik.Web.UI
 
Partial Class mike
    Inherits System.Web.UI.Page
 
    'Constants...
    Private Const pc_strRelevantBackgroundCellColor As String = "#CCFFCC"
 
    Private Sub datCMSReport_DayRender(sender As Object, e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles datCMSReport.DayRender
        If e.Day.Date = DateTime.Today OrElse e.Day.Date = DateTime.Today.AddDays(-1) OrElse e.Day.Date = DateTime.Today.AddDays(1) Then
            Dim cell As TableCell = e.Cell
            cell.CssClass = "rcSelected"
            cell.Attributes.Add("id", "Calendar1_" & ID.ToString())
 
            RadToolTipManager1.TargetControls.Add(e.Cell.Attributes("id"), ID.ToString(), True)
        End If
    End Sub
 
    Protected Sub RadToolTipManager1_AjaxUpdate(sender As Object, e As ToolTipUpdateEventArgs)
        Dim details As UserControl = TryCast(Me.LoadControl("CustomToolTip.ascx"), UserControl)
 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(details)
    End Sub
 
End Class


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>