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

Area for the tabbed documents...

5 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
liviu
Top achievements
Rank 1
liviu asked on 14 Sep 2007, 01:53 PM

Hi!

I have a docking manager and I opened it with a DockPanel normally docked and one docked as tabbed document. When I close this tabbed document or  I change his state to floating, it remains an area which
it's no longer usable by the other DockPanel. Is it a way to make this happen? The remaining dockPanel should extend to the whole area of the docking manager.  


Regards

5 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 14 Sep 2007, 02:42 PM
Hi Liviu,

This is the default behavior of the DockingManager. To change it, set DockingManager's TdiContainerVisible property to true.


Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
liviu
Top achievements
Rank 1
answered on 14 Sep 2007, 03:31 PM

Thanks for the prompt answer, but I don't think I made myself clear.

TDIContainerVisible = true means that the container for the tabbed documents is visible all the time ... even in design mode when I don't have any tabbed documents opened.

This is not what I need. If I don't have tabbed documents opened, the container shouldn't be visible.  TDIContainerVisible =false makes it true when I launch the application.
But if I opened a tabbed document and then closed it, the container remains visible and this is not what I want.

I hope I explained myself better.

0
Julian Benkov
Telerik team
answered on 17 Sep 2007, 12:26 PM
Hi Liviu,

In this scenario you can use the following snippet:

private void dockingManager1_DockingStateChanged(object sender, Telerik.WinControls.Docking.DockingChangedEventArgs e)    
{    
    if(this.dockingManager1.Documents.Count == 0)    
    {    
        dockingManager1.TdiContainerVisible = false;    
    }    
}    
 


Best wishes,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
liviu
Top achievements
Rank 1
answered on 17 Sep 2007, 01:00 PM

The closing button of a DockPanel doesn't removed it from the dockingManager. It just makes it invisible and this is the behaviour I need.
But even if I test that all the documents of the dockingManager are invisible and try to set dockingManager.TdiContainerVisible = false it doesn't work. My guess is that internally it is made another test ....

Regards



0
Julian Benkov
Telerik team
answered on 18 Sep 2007, 04:05 PM
Hi Liviu,

When a DockPanel is closed, it is not removed from DockingManager. The DockPanel window is removed from the DockingManager and the state of the closed DockPanel changes to Hidden.

In order to use the DockingManager with the TdiContainerVisible property set to false, you must change the value of the DockState property to values different from TabbedDocument for all DockPanels. The mode specified by the TdiContainerVisible = false will only work correctly only when all TabbedDocument panels such as DocumentPane are closed.

Thank you for contacting us. Please do not hesitate to contact us with any other issues you might be having.

Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
liviu
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
liviu
Top achievements
Rank 1
Share this question
or