TabStrip ContentPanel

2 posts, 0 answers
  1. Adam
    Adam avatar
    5 posts
    Member since:
    Apr 2008

    Posted 28 Sep 2009 Link to this post

    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.


  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 01 Oct 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top