Hello Dess,
Thanks again for your answer but this doesn't work either. It seems that in the gif you had to click twice to reopen the popup after you close it by clicking outside.
But thanks to your help, I think I found a solution (using the leave event of the radpopupeditor).
Could you please let me know if there is a better way or if this is ok?
Thank you very much
Private shouldClose As Boolean = False
Private isOpened As Boolean = False
Private Sub radPopupEditor1_PopupClosing(sender As Object, args As RadPopupClosingEventArgs) Handles RadPopupEditor1.PopupClosing
args.Cancel = Not shouldClose
isOpened = Not shouldClose
End Sub
Private Sub radPopupEditor1_MouseDown(sender As Object, e As MouseEventArgs) Handles RadPopupEditor1.MouseDown
If Not isOpened Then
Me.RadPopupEditor1.PopupEditorElement.ShowPopup()
isOpened = True
shouldClose = False
Else
shouldClose = True
Me.RadPopupEditor1.PopupEditorElement.ClosePopup()
End If
End Sub
Private Sub RadPopupEditor1_Leave(sender As Object, e As EventArgs) Handles RadPopupEditor1.Leave
shouldClose = True
Me.RadPopupEditor1.PopupEditorElement.ClosePopup()
'this has to be called because the closing event already occured and left the popup open
End Sub