3 Answers, 1 is accepted
0
Accepted
Hi Thomas,
I tried to reproduce the described behavior but was unable to. The Close event is fired which is expected.
I've made a sample project in which the Close event fires a MessageBox whenever a pane is closed, regardless of the way it's closed. Please review the project and let me know if it deliveres the desired result. If not, please update it with your logic, so I can investigate further.
Regards,
Dimitar Dinev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Thomas
Top achievements
Rank 1
answered on 18 Sep 2019, 01:28 PM
Thanks, I got your point. You set IsHidden explicitly in PreviewMouseDown event. But if you remove that method, you will be able still to close panes, but without a Close event.
0
Hi Thomas,
The pane won't close on middle mouse button, except if the CloseTabsOnMouseMiddleButtonDown property of the RadPaneGroup is used. If this is the case, it's an expected behavior, since this property doesn't close the pane but removes it from the visual tree, hence the Close event won't be raised.
Please, let me know if that answers your query.
Regards,
Dimitar Dinev
Progress Telerik
The pane won't close on middle mouse button, except if the CloseTabsOnMouseMiddleButtonDown property of the RadPaneGroup is used. If this is the case, it's an expected behavior, since this property doesn't close the pane but removes it from the visual tree, hence the Close event won't be raised.
Please, let me know if that answers your query.
Regards,
Dimitar Dinev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.