I’m not using your edit appointment window but I am using a custom one.
That is the reason I was trying to use the context menu but actually I can add a delete button inside my window (as you suggested).
Thanks for your reply.
Thank you Todor.
I needed also the end date so I finally used this code:
if (selection !== null) {
selectionDateFrom = selection.from;
selectionDateTo = selection.to;
}