Splitting Documents

8 posts, 1 answers
  1. bhogavalli
    bhogavalli avatar
    28 posts
    Member since:
    Sep 2010

    Posted 05 Jan 2011 Link to this post

    hi team,

    I have 4 documents spitted to 4 corners.
    How can i get their events in splitting and count of it.

    Thank
    suresh.
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 05 Jan 2011 Link to this post

    Hello bhogavalli,

    Sorry, i don't think i understand the question, can you please offer some more details on what you are trying to achieve and what are your requirements?

    Best Regards,
    Emanuel Varga
    Telerik WinForms MVP
  3. UI for WinForms is Visual Studio 2017 Ready
  4. bhogavalli
    bhogavalli avatar
    28 posts
    Member since:
    Sep 2010

    Posted 05 Jan 2011 Link to this post

    hi team,

    i have 4 tabbed Documents opened.Using Drag and Drop i have spitted the documents.

    so in side i have 3 tabbed Documents and right hand side 1 document.

    I would like to know the foremost tabbed documents opened.

    I need to get the FrontDocumentWindows

    Thanks
    Suresh
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Jan 2011 Link to this post

    Hello Suresh,

    You can get the active document by using the following
        Private Sub RadDock1_ActiveWindowChanged(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.Docking.DockWindowEventArgs) Handles RadDock1.ActiveWindowChanged
                    MessageBox.Show(e.DockWindow.Name)
        End Sub
      
    ' or
      
    MessageBox.Show(Me.RadDock1.ActiveWindow.Name.ToString())

    Hope that helps
    Richard
  6. bhogavalli
    bhogavalli avatar
    28 posts
    Member since:
    Sep 2010

    Posted 05 Jan 2011 Link to this post

    Hi ,

    Its not the Active Document Question.

    I am coming again from the beginning.

    I have 5 Tabbed Documents .

    Using Drag and Drop Service i can split the Document in Different format ,Example: Right ,Left Top and Bottom.

    Now i splitted Document1 to top.
                         Document2 to Bottom.
                         Document3 to Right.

    How to get the Visible Tabbed Documents to user no the hidden Documents. I mean thru code i should get the Documnet1 2 and 3.

    Please let me know in C#.

    I am sorru i cannot attach afile.
    here is the link and what i need.
    http://www.telerik.com/help/winforms/dock-architecture-and-features-document-manager.html
    click the above link.
    i have 2 documents documentwindow2 and documentwindow3. i need that 2 documents thru code.
    Thanks
    Suresh.
                 
  7. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Jan 2011 Link to this post

    Hello,

    This should get you the visible (to the user) documents.
    foreach (DockWindow win in this.RadDock1.DockWindows) {
        if (win is DocumentWindow) {
            if (((Control)win.TabStripItem.TabPanel).Visible) {
                // win is visible
                MessageBox.Show(win.Name);
            }
        }
    }

    Hope that helps
    Richard
  8. bhogavalli
    bhogavalli avatar
    28 posts
    Member since:
    Sep 2010

    Posted 05 Jan 2011 Link to this post

    hi team,

    Thanks a lot .

    finally i got the tabs.

     DockWindowCollection i_dockcontent = radDock.DockWindows;
                                    DockWindow[] i_dockwindows = i_dockcontent.DocumentWindows;
                                    for (int i = 0; i < i_dockwindows.Length; i++)
                                    {
                                        if (i_dockwindows[i].DockType == DockType.Document)
                                        {
                                            if (((Control)i_dockwindows[i].TabStripItem.TabPanel).Visible)
                                             {
                                              string str= ((Control)i_dockwindows[i]).Text;
                                             }
                                        }
                                    }

    Thanks
    suresh.
  9. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Jan 2011 Link to this post

    glad that helped
    All the best
    Richard
Back to Top
UI for WinForms is Visual Studio 2017 Ready