Custom Resource class

3 posts, 0 answers
  1. Michael
    Michael avatar
    18 posts
    Member since:
    Aug 2010

    Posted 23 Mar 2011 Link to this post

    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. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 24 Mar 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    18 posts
    Member since:
    Aug 2010

    Posted 24 Mar 2011 Link to this post

    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
Back to Top