This is a migrated thread and some comments may be shown as answers.

Calendar background disappears on mouse over

7 Answers 73 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
johnathan
Top achievements
Rank 1
johnathan asked on 22 Jul 2009, 12:38 AM
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

7 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 24 Jul 2009, 09:14 AM
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.
0
johnathan
Top achievements
Rank 1
answered on 24 Jul 2009, 01:11 PM
Hi it has happened in ie8 and ie7. How do I attach a screenshot for you?
0
Mira
Telerik team
answered on 27 Jul 2009, 09:48 AM
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.
0
Rune
Top achievements
Rank 2
answered on 29 Sep 2009, 07:27 AM
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
0
Mira
Telerik team
answered on 29 Sep 2009, 02:40 PM
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.
0
Rune
Top achievements
Rank 2
answered on 30 Sep 2009, 08:27 AM
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
0
Mira
Telerik team
answered on 05 Oct 2009, 02:23 PM
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.
Tags
Calendar
Asked by
johnathan
Top achievements
Rank 1
Answers by
Mira
Telerik team
johnathan
Top achievements
Rank 1
Rune
Top achievements
Rank 2
Share this question
or