Handle DocumentPanel closing Event

3 posts, 0 answers
  1. Lorenzo
    Lorenzo avatar
    17 posts
    Member since:
    Aug 2007

    Posted 15 Oct 2007 Link to this post


    I'm using registered version of Rad Controls for WinForms SP2, in particular I'm using DockingManager control.
    I have some some dockPanels and some documentPanels. I would like to handle documentPanel_closing events. (Ex: to check if the content was saved by user)

    I use the following code:

    [DESIGNER - Auto Generated Code]
    this.documentPane_Benvenuto.Closing += new System.ComponentModel.CancelEventHandler(this.documentPane_Benvenuto_Closing);

    private void documentPane_Benvenuto_Closing(object sender, CancelEventArgs e)
    MessageBox.Show("documentPane_Benvenuto is closing..");

    This code doesn't work. When i close the documentPane_Benvenuto the event isn't raised. If i set one breakpoint in the method documentPane_Benvenuto_Closing(...) nothing happen, the method isn't executed.
    What is the best way to solve my problem? There is a simple solution o work around to do this?

    Thank you very much for support.
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 16 Oct 2007 Link to this post

    Hello Lorenzo,

    This issue has already been fixed. Please download and use our Q2 SP1 release.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Lorenzo
    Lorenzo avatar
    17 posts
    Member since:
    Aug 2007

    Posted 17 Oct 2007 Link to this post

    Thank you, it works!
Back to Top