I am using a viewmodel and binding data to the Scheduleview from there like this
The Appointments and ResourceTypes look like this on the ViewModel
The Resource shows up but no appointments do. What am I doing wrong?
<
telerik:RadScheduleView
x:Name
=
"scheduleView"
...
AppointmentsSource
=
"{Binding Appointments}"
ResourceTypesSource
=
"{Binding ResourcesTypes}"
>
The Appointments and ResourceTypes look like this on the ViewModel
ResourceType employee = new ResourceType("Employee");
EmployeeResource one = new EmployeeResource();
one.ResourceName="Aidan";
one.DisplayName="AIDAN CAROLL";
one.Title="Business Analyst";
one.City="Team A";
one.Photo="../../aidan.jpg";
one.Brush = myBrush;
employee.Resources.Add(one);
AND
Appointment na = new Appointment() { Start = DateTime.Now.AddDays(1), End = DateTime.Now.AddDays(3), Subject = "test2 sub" };
na.Resources.Add(new Resource("Aidan", "Employee"));
appointments.Add(na);
RaisePropertyChanged("Appointments");
The Resource shows up but no appointments do. What am I doing wrong?