I was wondering if it is possible to change the background color of the timeslot of the radscheduler control with WeekView, for specific hours?
I can do it inTimelineView:
/*Timeline view*/
div.rsContent .rsTimelineTable .MyCustomClass
{
background-color: #cccccc !important;
}
and with this code
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
if ((e.TimeSlot.Start.ToString() == .....) and (e.TimeSlot.End.ToString() == ..... ))
{
e.TimeSlot.CssClass = "MyCustomClass";
}
}
but in WeekView the time slot is considered all day, e.TimeSlot.Start = "2012/01/23 00:00:00" e.TimeSlot.End="2012/01/24 00:00:00" so i can't set the background-color for specific hours, for example from 09:00 to 13:00.
there is a way to do that?
thanks, Mattia
I can do it inTimelineView:
/*Timeline view*/
div.rsContent .rsTimelineTable .MyCustomClass
{
background-color: #cccccc !important;
}
and with this code
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
if ((e.TimeSlot.Start.ToString() == .....) and (e.TimeSlot.End.ToString() == ..... ))
{
e.TimeSlot.CssClass = "MyCustomClass";
}
}
but in WeekView the time slot is considered all day, e.TimeSlot.Start = "2012/01/23 00:00:00" e.TimeSlot.End="2012/01/24 00:00:00" so i can't set the background-color for specific hours, for example from 09:00 to 13:00.
there is a way to do that?
thanks, Mattia