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

Retrofitting existing Application using TabStrip

3 Answers 41 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 24 Mar 2014, 07:22 PM
I am a newbie to Telerik and am using V2014.1.225.45.

We already have two separate application developed and plan on developing a third.  I would like to make a single "parent" application that would display tabs for each of the current separate applications plus a third for this new application. 

How do I make this "parent" page and can it support displaying "inside each tab the existing application without changes to application?  Can each application have itself a set of nested tabs as well?

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 27 Mar 2014, 09:24 AM
Hello,

As far as I understand you have 2 existing application and a third one in development. An easy and convenient way of creating a "parent" page to display tabs for each applications would be to follow this demo. Each multi page will show an existing application using its URL set as ContentUrl property for the page view. Following this approach you can simply create a parent page that will contain a RadTabStrip with 3 tabs. The associated PageViews will show each of your applications as shown in the demo.


Regards,
Boyan Dimitrov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Daniel
Top achievements
Rank 1
answered on 27 Mar 2014, 01:25 PM
Thank you.  That helps.

How would I dynamically control which tab appears?  One "application" is securied and not available to the public.  So, that tab would have to be enabled only if the User has credentials in the secured app.
0
Boyan Dimitrov
Telerik team
answered on 01 Apr 2014, 12:51 PM
Hello,

Thanks for the reply.

In this case I would suggest using roles in your web site in order to set the tabs visibility based on the current user role. The code snippet below shows how to hide the RadTabStrip tabs if the user is not  in the "Admin" role.
//code behind
protected void Page_Init(object sender, EventArgs e)
    {
        for (int i = 0; i < RadTabStrip1.Tabs.Count; i++)
        {
            if (!User.IsInRole("Admin"))
            {
                RadTabStrip1.Tabs[i].Visible = false;
            }
        }
    }

Please find more information about Managing Web Site Users with Roles in this help article.

Regards,
Boyan Dimitrov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
TabStrip
Asked by
Daniel
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or