Category in ScheduleView

2 posts, 0 answers
  1. Ronak
    Ronak avatar
    108 posts
    Member since:
    Sep 2010

    Posted 05 Jul 2011 Link to this post

    Hello,
    I have appointment with different category now i want to set background of Subject box based on category and i have it working in Rad Scheduler Control in Production system  but now i want to achieve same thing in ScheduleView how can i do that .
    Please find attachment of screenshot of Radscheduler application and i tool idea from first look of your radScheduler Control.
    in my case ScheduleView control bound to data coming from WCF service.This is what i did in RadScheduler control in order to get category.
    public AppointmentViewModel(PublicEvent appointment, RadScheduler_scheduler)  {
     
                this.UniqueId = appointment.UniqueId;
                this.Subject = appointment.Subject;
                this.Start = appointment.Start;
                this.End = appointment.End;
                this.Body = appointment.Body;
                this.IsAllDayEvent = appointment.IsAllDayEvent;
                this.Location = appointment.Location;
                 this.Category = _scheduler.Categories.GetCategoryByName(appointment.Category);
                
            }

    how can i do achieve same thing in ScheduleView control and i already have category Collection define in ScheduleView control its hardCoded not binding to any VM.

    Thanks
    Ronak
          
     
     
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Jul 2011 Link to this post

    Hi Ronak,

    In order to achieve this you will have to create custom AppointmentContentTemplate and bind the Background of the appointment with the Category's brush. You can find more information in this forum post

    Hope this helps.

    Kind regards,
    Konstantina
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top