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

TabStrip ContentPanel

1 Answer 57 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adam
Top achievements
Rank 1
Adam asked on 28 Sep 2009, 08:19 PM
How would you get the ContentPanel of the currently selected tab? I've seen one example in the forums where the RadTabStrip control collection is used, but I only need to get the ContentPanel for the currently selected tab.


1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 01 Oct 2009, 07:03 AM
Hi Adam,

Thank you for the question. You can determine the selected tab by using RadTabStrip SelectedTab property and afterwards get the ContentPanelHost:

TabItem selectedTab = this.radTabStrip1.SelectedTab as TabItem; 
RadTabStripContentPanel contentPanel = selectedTab.ContentPanelHost.HostedControl as RadTabStripContentPanel; 

I hope this helps. Write me back if you have other questions.

Sincerely yours,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Adam
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or