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

Custom Resource class

2 Answers 41 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 23 Mar 2011, 10:57 AM
Hi,

What do I need to do to have a self defined Resource class? Currently I'm inheriting from the class Telerik.Windows.Controls.Resource. My resources are shown in the scheduler, but selection,multiselection and drag and drop does not work correctly anymore. If I add "normal" resource objects everything works fine. What do I have to consider when implementing my own resource class?

thanks in advance,

michael

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 24 Mar 2011, 01:49 PM
Hi Michael,

RadScheduleView should work correctly if you just inherit from Resource and use your own classes. You could check the Equals/GetHashCode overrides if you have any - those could break RadScheduleView.

Regards,
Valeri Hristov
the Telerik team
0
Michael
Top achievements
Rank 1
answered on 24 Mar 2011, 03:52 PM
Hi Valeri,

thanks for your reply. You are right. The problem lies in the overridings of GetHashCode and Equals in my custom resource and custom appointment classes.

best regards,

michael
Tags
ScheduleView
Asked by
Michael
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or