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

Appointment not binding to Resource

3 Answers 58 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 10 Dec 2013, 09:39 PM
I am using a viewmodel and binding data to the Scheduleview from there like this

<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?


3 Answers, 1 is accepted

Sort by
0
Jerry
Top achievements
Rank 1
answered on 10 Dec 2013, 09:39 PM
This is all I get. Therefore i know the binding is working. Also if i remove the resource binding I can see the appointments. Any ideas?
0
Konstantina
Telerik team
answered on 11 Dec 2013, 09:20 AM
Hello,

Seems that you are doing everything correctly.
Please find attached a sample project in which the approach is illustrated.
If you still experience the issue, please send us a sample project in which this can be observed, so that we can inspect it further.

Regards,
Konstantina
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Jerry
Top achievements
Rank 1
answered on 18 Dec 2013, 10:43 PM
thanks that fixed it somehow.
Tags
ScheduleView
Asked by
Jerry
Top achievements
Rank 1
Answers by
Jerry
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or