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

Not able to set RadTabItem Header using template

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saravana Kumar
Top achievements
Rank 1
Saravana Kumar asked on 02 May 2010, 09:43 AM

Hello,
My Tab control configuration looks like this, its data bound to a ObservableCollection. The collection contains object of type UserControl with couple of properties. One property is QueryViewName which I wanted to display as tab item header.

I'm able to achive this using DisplayMemebrPath attribute, however its not working with HeaderTemplate (you can see the commented code here).

I would like to do it via HeaderTemplate, since I wanted to make the header editable. Any thoughts?


<

 

 

telerik:RadTabControl ItemsSource="{Binding Path=Queries}"

 

 

 

DisplayMemberPath="QueryViewName"

 

 

 

>

 

 

 

 

<!--<telerik:RadTabControl.ItemContainerStyle>

 

<Style TargetType="telerik:RadTabItem">

<Setter Property="HeaderTemplate">

<Setter.Value>

<DataTemplate>

<TextBlock Text="{Binding QueryViewName}"/>

</DataTemplate>

</Setter.Value>

</Setter>

</Style>

</telerik:RadTabControl.ItemContainerStyle>-->

 

 

 

</telerik:RadTabControl>

Regards,
Saravana

 

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 May 2010, 07:51 AM
Hi Saravana Kumar,

Please check this help article:
http://www.telerik.com/help/silverlight/radtabcontrol-item-templates-and-selectors.html

You don't need to set the DisplayMemberPath in this case.

Regards,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Saravana Kumar
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or