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

tabcontrol datatemplate and headertemplate

1 Answer 66 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 17 Nov 2010, 10:24 AM
hi,
how can I change the header template of the radtabcontrol ? I use a datatemplate but i don't know how to change the layout of the tabs itself. The demo on the site is on the tabitems but I am using binding

 

 

 

<telerik:RadTabControl Grid.Row="0" VerticalAlignment="Stretch" Height="Auto"

 

 

 

BorderThickness="2"

 

 

 

BorderBrush="#FFDBD5D4"

 

 

 

ItemsSource="{Binding Source={StaticResource TelerikRadTabDataSource},Path=Groups}"

 

 

 

DisplayMemberPath="Name"

 

 

 

Grid.RowSpan="2" Name="RadTabControl1" >

 

<

 

 

telerik:RadTabControl.ContentTemplate >

 

 

 

 

<DataTemplate >

 

 

 

 

<telerik:ItemsControl

 

 

 

Template="{StaticResource ControlTemplateKey}"

 

 

 

ItemsPanel="{StaticResource ItemsPanelKey}"

 

 

 

ItemTemplate="{StaticResource ItemTemplateKey}" ItemsSource="{Binding PushPins}">

 

 

 

 

</telerik:ItemsControl>

 

 

 

 

</DataTemplate>

 

 

 

 

</telerik:RadTabControl.ContentTemplate>

 

 

 

 

</telerik:RadTabControl>

 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 Nov 2010, 02:52 PM
Hello wimdevriendt,

I noticed that you're using the DisplayMemberPath property to define the TabItem's headers. However, if you need to further customize the RadTabItem header, you can use the ItemTemplate and the ItemTemplateSelector properties of the RadTabControl(read more).

Please feel free to ask if you need further assistance.

All the best,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
TabControl
Asked by
Patrick
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or