how to make PageView a documentWindow?

3 posts, 0 answers
  1. Marcie
    Marcie avatar
    3 posts
    Member since:
    Sep 2013

    Posted 28 Feb 2014 Link to this post

    Hi,

    How do I make a RadPageView be the tab of a radDock?
  2. Marcie
    Marcie avatar
    3 posts
    Member since:
    Sep 2013

    Posted 01 Mar 2014 Link to this post

    I answered my own question. I put the pageview in a user control and put the user control in the rad dock.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 03 Mar 2014 Link to this post

    Hello Marcie,

    Thank you for writing.

    RadPageView is a control like every other controls and in order to have it in a tab of RadDock, you need to add a DocumentWindow to RadDock and place the RadPageView control in the DocumentWindow's Controls collection. Here is a small sample:
    DocumentWindow dw = new DocumentWindow();
    dw.Text = "Tab 1";
    radDock1.AddDocument(dw, DockPosition.Left);
     
    RadPageView pw = new RadPageView();
    dw.Controls.Add(pw);

    I hope that you find this information useful.  

    Regards,
    Stefan
    Telerik
Back to Top