IAppointment Resources

3 posts, 0 answers
  1. Geoffrey
    Geoffrey avatar
    23 posts
    Member since:
    Mar 2011

    Posted 16 Nov 2011 Link to this post

    Hi,

    I'm trying to implement group headers and I have a class (TestClass) that implements IAppointment but there seems to be a problem when adding to the Resources property. The Resources.Count is always 0, even after adding to the resources. If I inherit from Appointment it works, but in my case I need to use IAppointment because the class already has another base class. Is there something I'm missing here to get it working?

    Thanks!

    Some sample code:

    public class TestClass : IAppointment
    {
    //IAppointment implementation...
    }

    Appointments = new List<TestClass>();

    var one = new TestClass
    {
    Subject = "Appointment 01",
            Start = DateTime.Now,
            End = DateTime.Now.AddHours(1)
    };

    one.Resources.Add(new Resource { ResourceName = "Test" }); //Resources.Count remains 0?
    Appointments.Add(one);
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 16 Nov 2011 Link to this post

    Hi Geoffrey,

    Probably something in your IAppointment implementation is not correct. I suppose we will be able to help if you paste the code here.

    Greetings,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Geoffrey
    Geoffrey avatar
    23 posts
    Member since:
    Mar 2011

    Posted 16 Nov 2011 Link to this post

    I had another look at my IAppointment implementation and there was a bug. It's working now, thanks.
Back to Top