Showing hidden tabbed documents

2 posts, 0 answers
  1. Adiel
    Adiel avatar
    10 posts
    Member since:
    Dec 2009

    Posted 13 Oct 2014 Link to this post

    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.
  2. Dimitar
    Dimitar avatar
    2983 posts

    Posted 15 Oct 2014 Link to this post

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

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

    Let me know if you have additional questions.

    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.

Back to Top