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

Check TreeViewItem programmatically does not propagate

5 Answers 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 23 May 2011, 10:24 AM
Hi,

I am binding the IsChecked property to a property in my ViewModel with the help of ItemContainerStyle.
When I click on the checkbox of a child "Item 2", I get the following result:

- Group A
   Item 1
x Item 2

So Group A is marked as indeterminate correctly.

When I set Item2.IsChecked  = true in my ViewModel, Item2 is marked as checked, but GroupA is marked as unchecked.

Am I doing something wrong? If not, is there a workaround for this?

Best Regards, Matthias

5 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 25 May 2011, 06:21 PM
Hi Matthias,

Probably you are not doing anything wrong. Keep in mind first that it is better to use CheckState instead of IsChecked in these situations. You can examine this blog post which describes the differences in these properties. On the other hand, there is an unimplemented feature that we plan to implement after the official Q2 2011 ( mid- July). You can examine it and vote for it here. Currently when using Style Bindings (WPF)/ ContainerBindings (SL) you have to implement your TriStateLogic on your own.
Please let us know if you need more info on this.

All the best,
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
0
Christian
Top achievements
Rank 1
answered on 25 Aug 2011, 02:12 PM
The unimplemented feature has not been included in last release, has it? :(
0
Petar Mladenov
Telerik team
answered on 30 Aug 2011, 01:09 PM
Hello Christian,

 Yes, this feature is still not implemented in the RadTreeView. You can track its status and vote for it in the mentioned PITS link. 

All the best,
Petar Mladenov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Christian
Top achievements
Rank 1
answered on 07 Sep 2011, 02:28 PM
This bug is quite annoying :(
Will it be fixed in next release?
0
Petar Mladenov
Telerik team
answered on 12 Sep 2011, 08:29 AM
Hello Christian,

 We cannot currently say when this will be implemented. In order to workaround this, you can implement your own TriState logic in the ViewModels and turn off the default ( IsInTriStateMode = false). You can find a good approach realized in this code library project. Please let us know if this is suitable for you.

Greetings,
Petar Mladenov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

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