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

how to make resource available "timings" in radscheduler

1 Answer 35 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hiren
Top achievements
Rank 1
Hiren asked on 08 Nov 2011, 08:28 AM
we want to mark time slots back color based on resource available timings. 
We will save Resource available timings in appointments format.
Please let us know the solution for this.


1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 10 Nov 2011, 02:27 PM
Hi Hiren,

You could subscribe to the OnTimeSlotCreated server-side event and color the TimeSlots in there, as in the code-block below:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
     if (e.TimeSlot.Control!=null)
     {
           e.TimeSlot.Control.BackColor = System.Drawing.Color.Red;
     }
              
}

Also, you could take a look at the attached sample page which shows how the TimeSlots could be customized.

I hope this helps.

Greetings,
Ivana
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
Tags
Scheduler
Asked by
Hiren
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or