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

Problem about AppointmentStatus and AppointmentBackgroundInfo.

1 Answer 65 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Waranya asked on 04 Sep 2009, 09:46 AM
   Help me please!!! I need to add value and change color of AppointmentStatus and AppointmentBackgroundInfo.
   I don't know how to do.
           The following method, I need to add value and change color!!!
           protected virtual void FillDefaultBackgrounds(SchedulerBackgroundCollection backgrounds)
           protected virtual void FillDefaultStatuses(SchedulerStatusCollection statuses)


1 Answer, 1 is accepted

Sort by
Boyko Markov
Telerik team
answered on 04 Sep 2009, 11:24 AM
Hi Waranya,

To modify the BackgroundInfo and StatusInto of RadScheduler you can do the following:
          AppointmentBackgroundInfo info = this.radScheduler.Backgrounds[0] as         
            info.BackColor = Color.Red;
            info.BackColor2 = Color.Green;
            info.DisplayName = "Custom";

            AppointmentStatusInfo status = this.radScheduler.Statuses[0] as AppointmentStatusInfo;
            status.DisplayName = "Custom";
            status.BackColor = Color.Red;

This will change the colors and displayNames of the existing BackGroundInfo and StatusInfo.

In the current version we do not support adding new BackGroundInfos and StatusInfos to the collections.

I hope this helps,

Kind regards,
Boyko Markov
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.
Scheduler and Reminder
Asked by
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question