Data binding in IsTriStateMode

3 posts, 0 answers
  1. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 07 Apr 2011 Link to this post

    Hi
    When I data bind TreeView and use IsChecked, witch works fine but it looks something like this:
    [ ]Beverages
     |__ [ ] Alcoholic
     |       |__ [X] Beer
     |......

    But I would like it to look like this (with the Indeterminate state)
    [-]Beverages
     |__ [-] Alcoholic
     |       |__ [X] Beer
     |......

    Is there any way to get this functionality when data binding ? or do I need to do this manually ?

    Best regards
    Kristján
  2. Kristjan Einarsson
    Kristjan Einarsson avatar
    95 posts
    Member since:
    Jan 2010

    Posted 08 Apr 2011 Link to this post

    spoke to soon, my converter was just returning ToogleState.On / Off but not Indeterminate.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Apr 2011 Link to this post

    Hello Kristjan Einarsson,

    Actually, you don't need a converter if you use the CheckState property of your RadTreeViewitem which is of type System.Windows.Automation.ToggleState. Please examine the approach in the attached solution and let us know if it helps you.

    Regards,
    Petar Mladenov
    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