Problem about AppointmentStatus and AppointmentBackgroundInfo.

2 posts, 0 answers
  1. Waranya
    Waranya avatar
    35 posts
    Member since:
    Dec 2007

    Posted 04 Sep 2009 Link to this post

    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+
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 04 Sep 2009 Link to this post

    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.
Back to Top