This is a migrated thread and some comments may be shown as answers.

I have a Problem from LoadOnDemand for TreeView

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Guntae Park
Top achievements
Rank 1
Guntae Park asked on 06 Dec 2011, 05:33 AM

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

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 08 Dec 2011, 04:33 PM
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 >>

Tags
TreeView
Asked by
Guntae Park
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or