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

Multiple DragDropHighlightStyles

1 Answer 57 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Kieron
Top achievements
Rank 1
Kieron asked on 17 May 2016, 11:09 AM

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 18 May 2016, 08:50 AM
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.
Tags
ScheduleView
Asked by
Kieron
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or