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

Showing hidden tabbed documents

1 Answer 70 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Adiel
Top achievements
Rank 1
Adiel asked on 13 Oct 2014, 07:40 AM
I am trying to provide a hide and show functionality with tabbed DocumentWindow instances.

The idea is to hide all DocumentWindow instances except one, and then later re-show all the hidden DocumentWindow instances.

The issue is that after hiding them, these windows are no more accessible through the Dock object.
Even when I add the following line when I create a new DocumentWindow instance.
 
documentWin.CloseAction = DockWindowCloseAction.Hide;<br>

It seems as if the Hide() method actually closed the DocumentWindow.

Appreciate any help on this issue.
Thanks
Meir

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 15 Oct 2014, 12:04 PM
Hi Meir,

Thank you for writing.

You can use the DocumentWindows collection in order to show and hide the document windows. For example you can hide the windows like this:
private void radButton2_Click(object sender, EventArgs e)
{
    for (int i = 1; i < radDock1.DockWindows.DocumentWindows.Length; i++)
    {
        radDock1.DockWindows.DocumentWindows[i].Hide();
    }
}

Then you can show them back:
private void radButton1_Click(object sender, EventArgs e)
{
    foreach (DocumentWindow window in radDock1.DockWindows.DocumentWindows)
    {
        window.Show();
    }
}

Let me know if you have additional questions.
 
Regards,
Dimitar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Dock
Asked by
Adiel
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or