This is a migrated thread and some comments may be shown as answers.

Is it possible to set all checkboxes to checked in XAML?

1 Answer 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
matt
Top achievements
Rank 1
matt asked on 21 Oct 2008, 02:46 PM
Or can this only be done programmatically/ 


<

 

telerik:RadTreeView x:Name="tvThemes" Background="#00CA4141"

 

 

IsExpandOnSingleClickEnabled ="True"

 

 

IsTriStateMode="True"

 

 

IsOptionElementsEnabled="True"

 

 

ItemsOptionListType="CheckList"

 

 

IsEditable="true"

 

 

>

 

 

 

<telerik:RadTreeView.ItemTemplate>

 

 

 

<telerikCore:HierarchicalDataTemplate ItemsSource="{Binding Themes}" >

 

 

 

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

 

 

 

</telerikCore:HierarchicalDataTemplate>

 

 

 

</telerik:RadTreeView.ItemTemplate>

 

 

 

</telerik:RadTreeView>

 

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 21 Oct 2008, 03:00 PM
Hi matt,

You can't set this from XAML, but you can set the CheckState property to all *root* items and the check state will propagate to the child items. This can be done programmatically.


Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
matt
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or