Not able to set RadTabItem Header using template

2 posts, 0 answers
  1. Saravana Kumar
    Saravana Kumar avatar
    22 posts
    Member since:
    Jul 2006

    Posted 02 May 2010 Link to this post

    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

     

  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 06 May 2010 Link to this post

    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.
Back to Top