Different Appointment-Backgrounds for one Appointment with multiple resources

4 posts, 0 answers
  1. Ates
    Ates avatar
    15 posts
    Member since:
    Nov 2010

    Posted 25 Aug 2015 Link to this post

    Hello

    how is it possible to achieve different background / display colors for one appointment with multiple resources?
    For example one appointment for one doctor but also for physiotherapy, OP and surgery at the same time. We now see the one appointment in all these resource columns, which is correct. We would also like this one appointment to have all different background colors pertaining to the individual resources (in properties for the resources defined).

    Sincerely,
    A.Kasar

  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 26 Aug 2015 Link to this post

    Hello,

    Please refer to our Appointment color based on resource SDK example.This example demonstrates how you can apply different color for the same appointment according to the assigned resources.

    More about our SDK example you can read here.

    Regards,
    Rosi
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ates
    Ates avatar
    15 posts
    Member since:
    Nov 2010

    Posted 26 Aug 2015 Link to this post

    Hello, 

    Thank you very much for your quick reply and helpful example which we looked at in depth.

    However, the example is not quite what we were looking for. It has three fixed resources and hence three fixed colors.

    I on the other hand need a dynamic listing of resources and pertaining colors.
    I have generated a CustomResource with property "color".
    Exactly this color I would like to have bound to the appointment as background color depending on the column the resource is in.
    Perhaps it would be possible to give the ResourcesToResourceConverter a dynamic resource as parameter? However, I do not know how to do that.

     

    Sincerely,
    A.Kasar​

  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 28 Aug 2015 Link to this post

    Hello,

    Please attached updated example illustrating how you can achieve the desired behavior using custom Resource implementation with additional property about the appointment color.

    Hope this helps.

    Regards,
    Rosi
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top