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.
Waranya
Top achievements
Rank 1
Waranya asked on 04 Sep 2009, 09:46 AM
Hello
   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)

Pum+

1 Answer, 1 is accepted

Sort by
0
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         
     AppointmentBackgroundInfo;
    
            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.
Tags
Scheduler and Reminder
Asked by
Waranya
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or