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

Handle DocumentPanel closing Event

2 Answers 74 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Lorenzo
Top achievements
Rank 1
Lorenzo asked on 15 Oct 2007, 03:44 PM
Hi,

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);

[FORM]
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.
Lorenzo

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 16 Oct 2007, 01:57 PM
Hello Lorenzo,

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

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lorenzo
Top achievements
Rank 1
answered on 17 Oct 2007, 07:30 AM
Thank you, it works!
Lorenzo
Tags
Dock
Asked by
Lorenzo
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Lorenzo
Top achievements
Rank 1
Share this question
or