ItemTemplate and HierarchicalMemberSource

3 posts, 0 answers
  1. Gabriel
    Gabriel avatar
    18 posts
    Member since:
    Jun 2011

    Posted 06 Jul 2011 Link to this post

    I have on my page a RadTransition control bind to a CollectionViewSource, which source is an ObservableCollection of ViewModels(VM) in a MVVM implementation. I use PRISM Data Template to select the right control base on the VM currently selected, here's some code snippets:
        <DataTemplate x:Key="SelectorDataTemplate" >
            <prism:DataTemplateSelector Content="{Binding}" HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch" VerticalContentAlignment="Stretch">
                            <DataTemplate x:Key="FirstViewModel">
                                    DataContext="{Binding}" />
                            <DataTemplate x:Key="SecondViewModel">

    <telerik:RadTransitionControl x:Name="navigatorMainContent"
         Content="{Binding ViewSource.View.CurrentItem}"
         ContentTemplate="{StaticResource SelectorDataTemplate}"

    Now I tried to add a RadBreadCrumb control to the interface that will allow navigate through the hierarchy. Based on the RadBreadcrumb Data binding example from the help, I change my items to be like the ExplorerItem. But now I've got this error when I try to add children to my Root item:
    You can't use both ItemTemplate and HierarchicalMemberSource.

    Is there a way to bind the breadcrumb to a flat list (as in my ObservableCollection)? Or bind my RadTransition to a HierarchicalMemberSource?

    Any help will be appreciated (I'm currently trying to reproduce this issue in an empty project to post it here).

  2. Gabriel
    Gabriel avatar
    18 posts
    Member since:
    Jun 2011

    Posted 06 Jul 2011 Link to this post

    Support ticket submitted with full solution (# 441090)
  3. DevCraft banner
  4. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 07 Jul 2011 Link to this post

    Hi Gabriel,

    Thanks to your elaborated report we reproduced the issue and found what is causing it. As I posted in the support ticket you sent, a fix will be available with the upcoming official release. In the meantime the item can be tracked from our PITS where you can track its progress.

    All the best,
    Tina Stancheva
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top