Finding top level page with nested tabstrip/multipage

3 posts, 0 answers
  1. RichJ
    RichJ avatar
    83 posts
    Member since:
    Aug 2006

    Posted 19 Aug 2011 Link to this post

    Hi all, 

    I'm looking for some help regarding nested tabstrips and multipages/pageviews.

    I have the following structure:
    default.aspx
       Tabstrip (mainTabStrip) with dynamic tabs using contentURL.  e.g. Account.aspx
            Account.aspx holds another tabstrip (accountTabStrip) loading pages using contentURL  e.g. Stock.aspx, Orders.aspx
                  Orders.aspx contains a radgrid with a list of orders. 
                  When an order is clicked I want to open a new tab in mainTabStrip as opposed to the fixed tabstrip in Account.aspx (accountTabStrip)

    My question is: How do obtain a refrence to mainTabStrip in default.aspx from pageviews below this?

    I hope this is clear, but can provide more detailed info if required.

    Cheers in advance for any suggestions.

    Rich
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 24 Aug 2011 Link to this post

    Hello Vaticnz,

    In order to get a reference to the RadTabStrip in the top level page you should define a JavaScript function as following:
    function getTabStrip(){
        return $find("tabStripID");
    }

    Then in the nested iframe you should be able to access it using the following approach:
    var tabStrip = window.top.getTabStrip()

    All the best,
    Dimitar Terziev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. RichJ
    RichJ avatar
    83 posts
    Member since:
    Aug 2006

    Posted 24 Aug 2011 Link to this post

    Thanks Dimitar,

    After I posted my question and actually thought about it a bit more and did exactly as you suggested.

    Cheers
    Rich
Back to Top