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

4 posts, 1 answers
  1. Thomas
    Thomas avatar
    29 posts
    Member since:
    Oct 2012

    Posted 18 Sep 2019 Link to this post

    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.

     

  2. Answer
    Dimitar Dinev
    Admin
    Dimitar Dinev avatar
    72 posts

    Posted 18 Sep 2019 Link to this post

    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.
  3. Thomas
    Thomas avatar
    29 posts
    Member since:
    Oct 2012

    Posted 18 Sep 2019 in reply to Dimitar Dinev Link to this post

    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.
  4. Dimitar Dinev
    Admin
    Dimitar Dinev avatar
    72 posts

    Posted 19 Sep 2019 Link to this post

    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.
Back to Top