Check All and Uncheck All

5 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 11 Jan 2010 Link to this post

    Hi.. I have the following.... When I click the parent checkbox the children are not checked and when I uncheck the parent the children are not unchecked... what am i missing.. I see in you examples this appear to work automatically ?   Why doesn't this? thanks again



    <telerikNavigation:RadTreeViewItem x:Name="InBox" Header="InBox" DefaultImageSrc="Images/4Inbox.png" OptionType="CheckList">













    <StackPanel Orientation="Vertical">




    <TextBlock Text="{Binding NAME}" FontSize="10" />




















  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 12 Jan 2010 Link to this post

    Hi Jon The Nerd,

    Please check this help article:

    you need to enable the tri-state mode of the checkboxes in the TreeView.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 12 Jan 2010 Link to this post

    thanks again!
  4. Monika Kogler
    Monika Kogler avatar
    30 posts
    Member since:
    Aug 2009

    Posted 05 Oct 2010 Link to this post


    i need have following problem: in the Checked-Event of the TreeView, i need first to uncheck all items in the tree and then only check on special item (accoring to the currently checked item). and i have to do this programmatically.

    Things i have tried:
    1. tree.CheckedItems.Clear() => Exception
    2. set CheckState for each item in tree.Items to ToggleState.On or ToggleState.Off => StackOverflowException.

    So how can i set all items in a tree unchecked or checked?
  5. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 07 Oct 2010 Link to this post

    Hello Monika,

    Try clearing the CheckedItems in the PreviewChecked event handler. Please find attached a sample project demonstrating this functionality. Let me know if you have further questions or comments.

    Best wishes,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top