Special Days will not show up until mouse hover

2 posts, 0 answers
  1. WAMatt
    WAMatt avatar
    17 posts
    Member since:
    Sep 2009

    Posted 04 Dec 2009 Link to this post

    I am trying to load a special day from the code behind.  The date does not show on the calendar until after I hover over it with the mouse.

    .Net Code:




    <telerik:RadCalendar ID="calEvents" runat="server" ondayrender="calEvents_DayRender">  


    C# Code:

    protected void Page_Load(object sender, EventArgs e)  
    protected void calEvents_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)  
        RadCalendarDay day = new RadCalendarDay(calEvents);  
        day.Date = DateTime.Today;   
        day.IsSelected = true;  
        day.ToolTip = "Tool Tip";   






    Can anybody tell me what I'm doing wrong?




  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 09 Dec 2009 Link to this post

    You might be adding the special day too late in the life cycle of the control, not allowing it to render initially. Once you hover over the item, however, it goes through whatever rendering changes a hover would change, and upon the mouse-off what wasn't able to render before ends up actually getting rendered. Try to see if you can subscribe to an earlier event :)
Back to Top