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

Finding top level page with nested tabstrip/multipage

2 Answers 47 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
RichJ
Top achievements
Rank 1
RichJ asked on 19 Aug 2011, 10:15 PM
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 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 24 Aug 2011, 11:38 AM
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 >>

0
RichJ
Top achievements
Rank 1
answered on 24 Aug 2011, 09:01 PM
Thanks Dimitar,

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

Cheers
Rich
Tags
TabStrip
Asked by
RichJ
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
RichJ
Top achievements
Rank 1
Share this question
or