ChildTableDefinition using c#/VB

2 posts, 0 answers
  1. Faheem
    Faheem avatar
    17 posts
    Member since:
    Feb 2011

    Posted 13 Jun 2011 Link to this post

    I want this above code to be writen in c# rather then using XAML, anyone knows how to do this?
    <
    telerik:RadTreeListView x:Name="radTreeListView">
       
    <telerik:RadTreeListView.ChildTableDefinitions>
           
    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
           
    </telerik:TreeListViewTableDefinition>
       
    </telerik:RadTreeListView.ChildTableDefinitions>
    </
    telerik:RadTreeListView>

    Thanks,
    Faheem
  2. Faheem
    Faheem avatar
    17 posts
    Member since:
    Feb 2011

    Posted 13 Jun 2011 Link to this post

    Telerik.Windows.Controls.TreeListViewTableDefinition ABC = new TreeListViewTableDefinition();
                System.Windows.Data.Binding binding = new System.Windows.Data.Binding("Items");

                ABC.ItemsSource = binding;
                radTreeListView1.ItemsSource = warehouse;
              
                this.radTreeListView1.ChildTableDefinitions.Add(ABC);

    got the solution :)
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top