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

Loading an .aspx page in Multipage control.

1 Answer 184 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Narendran
Top achievements
Rank 1
Narendran asked on 06 Apr 2010, 08:44 AM

Hi Telerik Team,

We are currently evaluating  your RadTabStrip and RadMultipage controls to use in our project.

We have the following requirements,

1) We have RadTabstrip control and RadMultipage control in the form. On Clicking (or) Loading on the TabStrip Item, We want to view the corresponding . aspx page  in the Multipage Control.

2)We have get the Page Url and Page Title  from Database. Page Title assign to the radtabstrip and Pageurl Assign to the Multipage Control, Based on Page Url, the Page will be open inside the Multipage Control.

 

Notes,

 We have existing .aspx page url, page Title get from database, this Corresponding page url .aspx page will  load in multipage control and  corresponding Page title assign to the Tab strip.

Right now we are using this Coding for loading RadTabstrip and  RadMultipage Control

  for (int i = 0; i < DtBindScreenValue.Rows.Count; i++)

    {

     RadTab RadTabVar = new RadTab();

     RadTabVar.Text = Convert.ToString(DtBindScreenValue.Rows[i]["sDefaultName"]);

     RadTabVar.Value = Convert.ToString(DtBindScreenValue.Rows[i]["aspxPageUrl"]);

     RadTabVar.ImageUrl = Convert.ToString(DtBindScreenValue.Rows[i]["Image"]);

     pnxWindowStrip.Tabs.Add(RadTabVar);

 

      RadPageView pageView = new RadPageView();

      pageView.ID = Convert.ToString(DtBindScreenValue.Rows[i]["sDefaultName"]);

      PnxMultipageView.PageViews.Add(pageView);

     

      RadTabVar.PageViewID = pageView.ID;

   

   }

 

This is our page screen Shot. This page contain radtabstrip and Multipage control.

Please provide as a working sample with our requirement.

Thanks in advance.

 

Regards,

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 09 Apr 2010, 10:30 AM
Hello Narendran,

I've made a sample project to help you with the scenario. The idea is to use an iframe for the PageView which will contain the corresponding .aspx page. The src to the iframe must refer to the page.

HtmlGenericControl control = new HtmlGenericControl("iframe");
       control.Attributes["ID"] = "frame1";
       control.Attributes["src"] = "Default.aspx";

You may find the full code in the attached .zip file.

Hope this helps.

Best wishes,
Veronica Milcheva
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.
Tags
TabStrip
Asked by
Narendran
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or