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

adding webforms to a tabstrip

4 Answers 94 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 20 Nov 2008, 06:03 AM
Hello, I have some aspx pages already written and working with code-behind, I'd like to display these pages within a TABStrip...is there a way to load a webform into RadMultiPageView so each webform can be rendered within the tab when clicked...I'd perfer to not have to recreate all the webforms as ascx user controls.  I tried setting the NavigationURL of each tab but that just behaves like a hyperlink and redirects you to the aspx page you must press the BACK button to get back to the page with the TabStrip.

Thanks

4 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 20 Nov 2008, 09:01 AM
Hello Kerry,

Unfortunately, you cannot display an ASPX file directly in the PageView(s). There are three suggestions we could offer:

  1. Convert your ASPX pages into a UserControls (ASCX files) and load them in the needed pageview(s).
  2. Create an IFRAME in the needed pageview and load the ASPX page inside it. Note that this method may lead to some further limitations.
  3. Use masterpage that will hold the tabstrip control and each tab will navigate to separate ASPX page.
Best wishes,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kerry
Top achievements
Rank 1
answered on 20 Nov 2008, 09:28 PM
Hi Paul thanks for the reply, I tried the Iframe solution and so far it has the desired effect, can you name a few of the most severe limations this may cause.  Thanks
0
Danny
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 06 Aug 2020, 09:13 PM
Hello and what would be the way to load an ASCX in the tabs, but taking into account that these tabs should be created automatically according to the user's action, as shown in the attached video, your help please. this process is a migration of a desktop system made with telerik and now it wants to pass it to the web, and according to I saw the best option to preserve the telerik elements is to use ajax and not mvc, or how can I achieve the video on the web using using telerik?

best regards.
0
Vessy
Telerik team
answered on 11 Aug 2020, 08:38 AM

Hi Danny,

I will recommend you to refer to thе following demo which demonstrates how we recommend adding dynamically tabs and multipages to a project, so you can use it as a base for your scenario:

https://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx

You can navigate through the demo About this demo/ C# / VB tabs in order to switch between the description and the source code of the demo.

private void AddPageView(string pageViewID)
{
    RadPageView pageView = new RadPageView();
    pageView.ID = pageViewID;
    RadMultiPage1.PageViews.Add(pageView);
}

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
    AddPageView(e.Tab.Text);
    e.Tab.PageView.Selected = true;

 

Regards,
Vessy
Progress Telerik

Tags
TabStrip
Asked by
Kerry
Top achievements
Rank 1
Answers by
Paul
Telerik team
Kerry
Top achievements
Rank 1
Danny
Top achievements
Rank 1
Iron
Veteran
Iron
Vessy
Telerik team
Share this question
or