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

2 posts, 0 answers
  1. matt
    matt avatar
    75 posts
    Member since:
    May 2008

    Posted 21 Oct 2008 Link to this post

    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>

     

  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 21 Oct 2008 Link to this post

    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.
Back to Top