Appointment not binding to Resource

4 posts, 0 answers
  1. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 10 Dec 2013 Link to this post

    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?


  2. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 10 Dec 2013 Link to this post

    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?
  3. DevCraft banner
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Dec 2013 Link to this post

    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 >>
  5. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 18 Dec 2013 Link to this post

    thanks that fixed it somehow.
Back to Top