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

RadTabItem 100% collapsed or hidden?

2 Answers 172 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Robbe Morris
Top achievements
Rank 1
Robbe Morris asked on 31 Mar 2009, 07:50 PM
I know this sounds like an odd request but can you post the xaml required to make all headers on a TabControl hidden from view?
I want to use the functionality of the TabControl but drive tab selection via another UI component.

2 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 01 Apr 2009, 07:03 AM
Hi Robbe Morris,

Thank you for writting to us. To achieve the task you can use the code below:
<telerikNavigation:RadTabControl BackgroundVisibility="Collapsed" Width="200" Height="100" > 
            <telerikNavigation:RadTabItem Header="Header 1" Visibility="Collapsed" > 
                <telerikNavigation:RadTabItem Header="RadTabItem 1" /> 
            </telerikNavigation:RadTabItem> 
            <telerikNavigation:RadTabItem Header="Header 2" Visibility="Collapsed" > 
                <telerikNavigation:RadTabItem Header="RadTabItem 2"  /> 
            </telerikNavigation:RadTabItem> 
        </telerikNavigation:RadTabControl> 


Sincerely yours,
Kaloyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Robbe Morris
Top achievements
Rank 1
answered on 01 Apr 2009, 03:20 PM
Got it.  I would have expected that property to attempt to collapse the contents of the tab and not the header.  But, it works.  Thanks!
Tags
TabControl
Asked by
Robbe Morris
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Robbe Morris
Top achievements
Rank 1
Share this question
or