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

Change background color of Radscheduler time slots based on attributes using javascript

2 Answers 136 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 20 Sep 2013, 03:09 PM
Hi,
I need to change the background color of Radscheduler time slots based on some attribute of a resource.
I was  handling it  using '"OnTimeSlotCreated" event  in data bound scheduler.  Now I have a  web service bound scheduler, and I do not see this event on client side, how can I implement this logic and change time slot background color ?


protected void  OnTimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
    {
                ....
             if( condition1 )
                     e.TimeSlot.Control.BackColor = Color.Yellow;
             else 
                   e.TimeSlot.Control.BackColor = Color.White;

Any idea?
Thanks,
Prava

2 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 24 Sep 2013, 01:48 PM
Hello Prava,

Please try using the approach that is described in this forum post and check how it goes from your side.

Regards,
Kate
Telerik
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 the blog feed now.
0
Prava kafle
Top achievements
Rank 1
answered on 25 Sep 2013, 03:12 PM
Hi Kate,

Given code works for all other views except for Timeline. How can I set css class  for timelineView in webservicebound scheduler?

Thanks,
Prava
Tags
Scheduler
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Kate
Telerik team
Prava kafle
Top achievements
Rank 1
Share this question
or