Multiple DragDropHighlightStyles

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

    Posted 17 May Link to this post


    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?


  2. Answer
    Yana avatar
    4547 posts

    Posted 18 May 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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top