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

Change backgound color of time slot in weekview

2 Answers 100 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
TT
Top achievements
Rank 1
TT asked on 27 Jan 2012, 11:14 AM
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

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 27 Jan 2012, 11:50 AM
Hi,

Please, see the Customizing the Time Slots online demo and its related resources.

Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
TT
Top achievements
Rank 1
answered on 31 Jan 2012, 10:52 AM
Thanks, i solved
Tags
Scheduler
Asked by
TT
Top achievements
Rank 1
Answers by
Peter
Telerik team
TT
Top achievements
Rank 1
Share this question
or