How dyanmic to programme TreelistView instead of setting property on xml

1 posts, 0 answers
  1. Lior
    Lior avatar
    28 posts
    Member since:
    Aug 2012

    Posted 25 Oct 2012 Link to this post

    Currently we adopt the mvvm pattern. there is an issue dynamic column could not set in XAML, We've implemented a dynamic radgrid, but How should we create dynamic RadTreeListview by programme instead of set property on XAML
    Currently there are defined in xaml, How we  to move this by dynamically creating column in a custom control.

    Thank you in advance.

    <telerik:RadTreeListView  ItemsSource="{Binding PhaseSelections, Mode=TwoWay}">
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayName, Mode=TwoWay}"/>
                          <telerik:GridViewDataColumn IsReadOnly="True">
                                    <CheckBox  Command="{Binding SelectCommand, Source={StaticResource ViewModel}}" CommandParameter="{Binding}" IsChecked="{Binding InScope, Mode=TwoWay}"/>
                        <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildProcess, Mode=TwoWay}">
Back to Top