This question is locked. New answers and comments are not allowed.
Hi,
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.
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:RadTreeListView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayName, Mode=TwoWay}"/> <telerik:GridViewDataColumn IsReadOnly="True"> <telerik:GridViewDataColumn.CellTemplate> <telerik:HierarchicalDataTemplate> <CheckBox Command="{Binding SelectCommand, Source={StaticResource ViewModel}}" CommandParameter="{Binding}" IsChecked="{Binding InScope, Mode=TwoWay}"/> </telerik:HierarchicalDataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn> </telerik:RadTreeListView.Columns> <telerik:RadTreeListView.ChildTableDefinitions> <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildProcess, Mode=TwoWay}"> </telerik:TreeListViewTableDefinition> </telerik:RadTreeListView.ChildTableDefinitions></telerik:RadTreeListView>