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

Category in ScheduleView

1 Answer 124 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Ronak
Top achievements
Rank 1
Ronak asked on 05 Jul 2011, 01:02 PM
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
      
 
 

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 11 Jul 2011, 09:53 AM
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!

Tags
ScheduleView
Asked by
Ronak
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or