Hierarchical Data

3 posts, 1 answers
  1. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 13 Jul 2010 Link to this post

    Im having problems with Hierarchical data Showing their children. 
    I had this working in the prior CTP and am now trying to make it work with the beta
    i dumbed up the code to see if i could figure out what was going on but still no child items are displayed.
    What am I doing wrong.

    Public Class Test
        Private _Items As New ObservableCollection(Of test)
        Public Property Items() As ObservableCollection(Of test)
                Return _Items
            End Get
            Set(ByVal value As ObservableCollection(Of test))
                _Items = value
            End Set
        End Property
        Private _Name As String = "AA"
        Public Property Name() As String
                Return _Name
            End Get
            Set(ByVal value As String)
                _Name = value
            End Set
        End Property
    End Class
    Private Sub tvKits_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles tvKits.Loaded
        Dim zz As New ObservableCollection(Of Test)
        zz.Add(New Test)
        zz(0).Items.Add(New Test)
        zz(0).Items(0).Items.Add(New Test)
        tvKits.ItemsSource = zz
    End Sub

    <telerikGridView:RadTreeListView IsReadOnly="True" x:Name="tvKits" Grid.Row="1"  Grid.Column="1" AutoGenerateColumns="False" >
                    <telerikData:PropertyRelation ParentPropertyName="Items"/>
            <telerikGridView:GridViewDataColumn Header="Assembly"  DataMemberBinding="{Binding Name}"  />

  2. Answer
    Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 15 Jul 2010 Link to this post

    Hello David Ocasio,

    Please find attached a working project based on the code you provided.

    Best wishes,
    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
  3. DevCraft R3 2016 release webinar banner
  4. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 15 Jul 2010 Link to this post

    Oh I see

    I used

    instead of

    thanks Veskoni

Back to Top