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

Access TabStrip Object

5 Answers 67 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
BALA MUKUND
Top achievements
Rank 1
BALA MUKUND asked on 03 Jul 2008, 02:46 AM
Hello,

I have a main window which holds the TabStrip. Within this window I have an IFRAME. How can I access the TabStrip object from within the page of the IFRAME.

Generally, to access an object in the parent I would do something like

window.parent.document.getElementById(...)

I want to get the ClientID of the TabStrip from the IFRAME so that I can enable disable tabs based on user selection from within the IFRAME page.

Any help would be most appreciated.

Thanks
Bala

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Jul 2008, 07:55 AM
Hello BALA MUKUND,

You can use the following code:

var tabStrip = $get("frame1").contentWindow.$find("RadTabStrip1");

where "frame1" is the ID of your iframe and "RadTabStrip1" is the tabstrip's id.

I hope this helps,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
BALA MUKUND
Top achievements
Rank 1
answered on 03 Jul 2008, 11:16 AM
Hello,

The code snippet you have provided is has functions such as

$get
$find

Maybe I am a little off here - I have never used them in JavaScript and I do get errors when I use them. Am I missing something?

Thanks
0
BALA MUKUND
Top achievements
Rank 1
answered on 08 Jul 2008, 07:12 PM
Could someone please help me on those questions?

Thanks
Bala
0
Simon
Telerik team
answered on 09 Jul 2008, 11:47 AM
Hello BALA MUKUND,

Are you using RadTabStrip for ASP.NET and not the AJAX version?

In case this is true, you can use the following code:

document.getElementById("frame1").contentWindow.RadTabStrip1;

where "frame1" is the ID of your iframe and RadTabStrip1 is the tabstrip's id.

Best wishes,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
BALA MUKUND
Top achievements
Rank 1
answered on 09 Jul 2008, 01:30 PM
Thanks! I don't use Rad Controls for AJAX. I guess that is why I was a little confused.

Your answer helps clarify that. I was able to work this.

Thanks once again.
Bala
Tags
TabStrip
Asked by
BALA MUKUND
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
BALA MUKUND
Top achievements
Rank 1
Simon
Telerik team
Share this question
or