Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > I have a Problem from LoadOnDemand for TreeView

Not answered I have a Problem from LoadOnDemand for TreeView

Feed from this thread
  • Guntae Park avatar

    Posted on Dec 5, 2011 (permalink)

    Hi

    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

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Dec 8, 2011 (permalink)

    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.

    Greetings,
    Petar Mladenov
    the Telerik team

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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > I have a Problem from LoadOnDemand for TreeView
Related resources for "I have a Problem from LoadOnDemand for TreeView"

WPF TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]