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

Adding RadPageView to RadMultiPage server side

3 Answers 212 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Lighthouse Developer
Top achievements
Rank 1
Lighthouse Developer asked on 12 May 2010, 09:17 AM
Well, that's basically what I want to do. I want to programmatically create PageViews on the server side, along with tabs. Couldn't find an example for the views. Any help?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 May 2010, 09:20 AM
Hello,

Please check this help article for more information about adding pageview dynamically.

All the best,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Web Services
Top achievements
Rank 2
answered on 22 Mar 2011, 11:18 PM
I checked that out and got the page view working. How would I go about adding content to the pageview itself. Specifically, I need to programatically add a radgrid to each pageview?
0
Helen
Telerik team
answered on 24 Mar 2011, 10:30 AM
Hello,

You may use the PageViewCreated event similar to the example below and add grids instead of user controls:

protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
 string userControlName = e.PageView.ID + "CS.ascx";
       
 Control userControl = Page.LoadControl(userControlName);
 userControl.ID = e.PageView.ID + "_userControl";
       
 e.PageView.Controls.Add(userControl);
}

Greetings,
Helen
the Telerik team
Tags
TabStrip
Asked by
Lighthouse Developer
Top achievements
Rank 1
Answers by
Yana
Telerik team
Web Services
Top achievements
Rank 2
Helen
Telerik team
Share this question
or