Calendar background disappears on mouse over

8 posts, 0 answers
  1. johnathan
    johnathan avatar
    11 posts
    Member since:
    Apr 2008

    Posted 21 Jul 2009 Link to this post

    on your online sample, there is a bug

    http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx

    if you go to February 9, 2009 in the calendar and mouse over the day showing an appointment the appoinement dissapears on the calendar on  mouse over. I am experiencing the same thing on code based off of this sample. please help because this makes the feature kinda useless
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 24 Jul 2009 Link to this post

    Hi johnathan,

    Could you please tell us under which browser you spotted this bug and possibly attach a screenshot?
    Under Firefox, IE7 and IE8 the demo is fine.

    Thank you in advance,
    Mira
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. johnathan
    johnathan avatar
    11 posts
    Member since:
    Apr 2008

    Posted 24 Jul 2009 Link to this post

    Hi it has happened in ie8 and ie7. How do I attach a screenshot for you?
  4. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 27 Jul 2009 Link to this post

    Hello johnathan,

    You can open folmal support ticket and attach the screenshot there. Or you to use http://imageshack.us/ for instance to upload it and send us the link.

    Thank you for the cooperation.

    Best wishes,
    Mira
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 29 Sep 2009 Link to this post

    Hi,

    Did you fix this yet? Or when do you fix it? 

    I need the backgrounds for my own project and I can see that it still remove the backgrounds on mouseover.

    Thanks
    Rune
  6. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 29 Sep 2009 Link to this post

    Hi Rune,

    The described in this thread behavior can easily be fixed by modifying the AppointmentDataBound event handler in the following way:
        protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e) 
        { 
           RadCalendarDay radCalendarDay = new RadCalendarDay(RadCalendar1); 
            radCalendarDay.Date = e.Appointment.Start; 
            radCalendarDay.IsSelected = true
            RadCalendar1.SpecialDays.Clear(); 
             
            ... 
        } 

    I am also attaching a modification of the demo implementing this. I hope you will find it useful.

    Greetings,
    Mira
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 30 Sep 2009 Link to this post

    Hi,

    Thanks for the reply. You're right, that did fix the problem.

    But I can see that it did not fix all of my problem.
    I am running the below code on the RadCalendars OnDayRender

    Putting in the code you gave me just changes the class of the td to rcSelected and removes my backcolor. What is the point of having the option to set the bgcolor when the clientside script just removes it?

    What can I do?

    protected void CustomizeDay( object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e ) {  
      DateTime CurrentDate = e.Day.Date;  
      HourkidSimpleAppointment app = HourkidAppointment.DateHasAppointments( CurrentDate );  
      if( app != null ) {  
        TableCell currentCell = e.Cell;  
        e.Cell.BackColor = Utils.HexStringToColor( app.ColorHex );  
        currentCell.CssClass = "hasAppointment";  
      }  

    Thanks
    Rune
  8. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 05 Oct 2009 Link to this post

    Hello Rune,

    A current limitation of the RadCalendar is that it does not allow having different styles for selected special and selected non-special dates.

    Please excuse us for any inconveniences this might cause.

    Greetings,
    Mira
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top