Multiple DragDropHighlightStyles

2 posts, 1 answers
  1. Kieron
    Kieron avatar
    19 posts
    Member since:
    Nov 2013

    Posted 17 May 2016 Link to this post

    Hi,

    Is it possible to have different DragDropHighlightStyles on a ScheduleView.  I have two distinct types of appointments a user can drag onto the scheduleview and for one of those types - I don't want the standard yellow (with time) highlight style being used - but I do want it on the other type of appointment.  Is there any way I could achieve this behaviour?

    Thanks.

  2. Answer
    Yana
    Admin
    Yana avatar
    4579 posts

    Posted 18 May 2016 Link to this post

    Hi Kieron,

    It is not possible to apply completely different DragDropHighlightStyles to RadScheduleView, but you could modify the template of the default DragDropHightlightStyle and show/hide some elements according to the appointment. You could check the following topic in our documentation which explains how to modify the DragDropHighlight:
    Customizing the Resize and DragDropHighlight

    In the template you will receive as a DataContext a Telerik.Windows.Controls.ScheduleView.DragDropDecorationBlock object which holds a reference to the dragged Appointment. You could use Converters to check the appointments properties and set Visibility of the required elements according to them.

    I hope this will be helpful.

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top