problem in treeview

2 posts, 0 answers
  1. naga kiran
    naga kiran avatar
    3 posts
    Member since:
    Aug 2009

    Posted 20 Aug 2009 Link to this post



    I build a list as itemsource for treeview.  i am able to see the child items but not able to see the  header of the Parent elements.
    Here posting my code:


    telerikNavigation:RadTreeView x:Name="radTreeView" Grid.Row="1" >








    <core:HierarchicalDataTemplate x:Name="datatemplate" ItemsSource="{Binding DataPoints}">




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













    radtreeview.itemsSource=data; //include the child list object(DataPoints) in this  object


  2. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 21 Aug 2009 Link to this post

    Hi naga,

    If you are not able to see the headers of your parent elements this must be caused by binding to an incorrect value in your HierarchicalDataTemplate. From the code snippet you posted I see that you are binding the TextBox element that is going to be rendered as the header of the parent treeview items is bound to a property called "DisplayName". Does this property exist?

    Kind regards,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top