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

Dock Tab Document

2 Answers 192 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Claude IMBERT
Top achievements
Rank 1
Claude IMBERT asked on 23 Apr 2007, 01:23 PM
Hello,

I would like catch the close event when I click on the close button of tab document?

Thank's a lot

Lionel

2 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 23 Apr 2007, 05:31 PM
Hi Lionel,

This issue is in our TODO list. The feature will be available for Q1 2007 SP1 release (some time next month).
 

Regards,
Julian Benkov
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
KMBah
Top achievements
Rank 1
answered on 07 Aug 2007, 06:24 PM
Not sure if you got this working for you or not, but here's how I'm doing it in my application.

dmMain is my docking manager on frmMain. frmView is a mdichild of frmMain. dmMain takes control of frmView with the new AutoDetectMdiChildForms option.

public frmMain()  
{  
    InitializeComponent();  
    this.dmMain.DockingStateChanging += new DockingChangingEventHandler(dmMain_DockingStateChanging);  
}  
 
 
private void dmMain_DockingStateChanging(object sender, DockingChangingEventArgs e)  
{  
    if (e.DockObject is DocumentPane)  
    {  
        if (e.PreviousDockableState == DockState.TabbedDocument  
            && e.DockableState == DockState.Default)  
        {  
            DocumentPane dp = e.DockObject as DocumentPane;  
            frmView frm = dp.Controls[0] as frmView;  
 
            frm.Close();  
        }  
    }  
Tags
Dock
Asked by
Claude IMBERT
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
KMBah
Top achievements
Rank 1
Share this question
or