Thank you for writing back.
This can be done by just checking if the context menu contains the mouse and cancel the close only if it does:
sender, CancelEventArgs e)
Please let me know if there is something else I can help you with.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.