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

IAppointment Resources

2 Answers 87 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Geoffrey
Top achievements
Rank 1
Geoffrey asked on 16 Nov 2011, 10:58 AM
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 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 16 Nov 2011, 12:42 PM
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 >>

0
Geoffrey
Top achievements
Rank 1
answered on 16 Nov 2011, 01:02 PM
I had another look at my IAppointment implementation and there was a bug. It's working now, thanks.
Tags
ScheduleView
Asked by
Geoffrey
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Geoffrey
Top achievements
Rank 1
Share this question
or