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

how to make PageView a documentWindow?

2 Answers 45 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Marcie
Top achievements
Rank 1
Marcie asked on 28 Feb 2014, 09:15 PM
Hi,

How do I make a RadPageView be the tab of a radDock?

2 Answers, 1 is accepted

Sort by
0
Marcie
Top achievements
Rank 1
answered on 01 Mar 2014, 10:15 PM
I answered my own question. I put the pageview in a user control and put the user control in the rad dock.
0
Stefan
Telerik team
answered on 03 Mar 2014, 10:18 AM
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
Tags
PageView
Asked by
Marcie
Top achievements
Rank 1
Answers by
Marcie
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or