Thank you for the attached images. It really helped us a lot to better understand your scenario.
In order to achieve the desired behavior we suggest you to use the Opening event of the ContextMenu
and the SelectedAppointment
properties of RadScheduleView
So, when the ContextMenu
gets open the event will be fired. Inside it you need to check if there is a SelectedAppointment
- they are mutually exclusive because of that while the one is set the other is null. If there is a SelectedAppointment
you need to get all AppointmentItems
using the ChildrenOfType
method. Next you need to find which AppointmentItem
is equal to the SelectedAppointment
and set it as PlacementTarget
for the ContextMenu
If there is no SelectedAppointment
there should be a SelectedSlot
as explained above they are mutually exclusive. So, if there is SelectedSlot
again using the ChildrenOfType
property you need to get the HighlightedItems
and set the PlacementTarget
with the first found item.
We have created a sample project that demonstrates the described above approach and you could run and evaluate it.
Hopes this helps.
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?
Telerik Feedback Portal
and vote to affect the priority of the items