Retrofitting existing Application using TabStrip

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    8 posts
    Member since:
    Nov 2013

    Posted 24 Mar 2014 Link to this post

    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?
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 27 Mar 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel
    Daniel avatar
    8 posts
    Member since:
    Nov 2013

    Posted 27 Mar 2014 in reply to Boyan Dimitrov Link to this post

    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.
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 01 Apr 2014 Link to this post

    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.

     
Back to Top