RadDocumentPane Header text looses binding

2 posts, 0 answers
  1. Frans
    Frans avatar
    7 posts
    Member since:
    May 2012

    Posted 10 Aug 2012 Link to this post


    I have a RadDocumentPane (same for RadPane) with the HeaderTemplate that has a DataTemplate as a static resource. Binding works fine with dock/undock. The issue comes in when RadDocking.LoadLayout is called. The binding is lost on the DocumentHeader (text for header).  There is no problem with the Tooltip binding on the RadDocking.LoadLayout. Can someone assist?


    <DataTemplate x:Key="RadPaneHeaderTemplate" DataType="{x:Type telerikDocking:RadPane}">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding}" ToolTip="{Binding ElementName=DocumentPane, Path=Tag, Mode=OneWay}"/>


    <telerikDocking:RadDocumentPane x:Name="DocumentPane"
                                                         HeaderTemplate="{StaticResource RadPaneHeaderTemplate}" Header="{Binding Path=DocumentHeader}"
                                                         Tag="{Binding Path=DocumentToolTip}"
                                                         HorizontalContentAlignment="Left" CanUserClose="False"
                                                         DataContext="{Binding}" >

  2. Georgi
    Georgi avatar
    362 posts

    Posted 15 Aug 2012 Link to this post

    Hello Frans,

    We were able to reproduce it with your code, but it seems like removing DataContext="{Binding}"
    from the RadDocumentPane fixes the issue. It would be great if you can give it a try and let us know if this works for you.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top