This is a migrated thread and some comments may be shown as answers.

Close event is not fired when close the pane with mouse middle button

3 Answers 48 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 18 Sep 2019, 10:05 AM

Hi,

The RadDocking.Close event is not fired when close the pane with mouse middle button (click by pane header), how to get it raised?

Thank you.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar Dinev
Telerik team
answered on 18 Sep 2019, 01:19 PM

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
Dimitar Dinev
Telerik team
answered on 19 Sep 2019, 10:47 AM
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
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.
Tags
Docking
Asked by
Thomas
Top achievements
Rank 1
Answers by
Dimitar Dinev
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or