Adding RadPageView to RadMultiPage server side

4 posts, 0 answers
  1. Lighthouse Developer
    Lighthouse Developer avatar
    34 posts
    Member since:
    Feb 2010

    Posted 12 May 2010 Link to this post

    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?
  2. Yana
    Yana avatar
    4547 posts

    Posted 12 May 2010 Link to this post


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

    All the best,
    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.
  3. DevCraft R3 2016 release webinar banner
  4. Web Services
    Web Services avatar
    243 posts
    Member since:
    Apr 2008

    Posted 22 Mar 2011 Link to this post

    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?
  5. Helen
    Helen avatar
    1052 posts

    Posted 24 Mar 2011 Link to this post


    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";

    the Telerik team
Back to Top