I have a Problem from LoadOnDemand for TreeView

2 posts, 0 answers
  1. Guntae Park
    Guntae Park avatar
    4 posts
    Member since:
    Dec 2009

    Posted 05 Dec 2011 Link to this post


    i have problem following this scenario :

    TreeView use LoadOnDemand and CheckList

    1.  parent node checked;
    2.  parent node expand;

    i want to result that is all check of child node for parent node

    but all not checked for checkbox for child node for parent node

    how to do checked for all checkbox of child node for parent node??

    thank you

  2. Petar Mladenov
    Petar Mladenov avatar
    3062 posts

    Posted 08 Dec 2011 Link to this post

    Hello Guntae Park,

     I am not quite sure I understood your scenario. I guess you are familiar with the default "TriState" behavior which is ON when you set IsInTriStateMode to true on the RadTreeView. If you need functionality closer to this "tri-state" logic, the best way to achieve this is to set IsInTriStateMode to false and use databinding with ViewModels. Then you can place your custom "tri-state" logic as methods in your ViewModels. Please check out this code library Silverlight project where a tri-state is implemented with ViewModels. The same approach could be use in WPF. Is this suitable for you ?
    Of course there is always a code behind solution but it may lead to some known issues in the RadTreeView with the IsChecked property and the CheckedItems collection.

    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top