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

CheckState refresh after collection changed

4 Answers 43 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 24 Jul 2013, 02:55 PM
Hi,

I'm using RadTreeView with collections, where both parent and child elements are bound to: CollectionViewSource. This allows the bound collections to be easily sorted.  The problem is occurs when:
1. Filter out the child collection
2. Select parent item (the parent item and all visible children get checked)
3. Remove filter - the parent item stills is in checked state (instead of undeterminate).

Best regards
Marcin Danek

4 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 25 Jul 2013, 07:40 AM
Hello Marcin,

I am not sure that I fully understand your scenario. Can you please elaborate more on your current implementation. Also can you please clarify what is the issue that you observe and report (with video, images, snippets).

It will be best if you can reproduce the reported behavior in a separate project and attach it to a support ticket that can be opened from your Telerik account.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Marcin
Top achievements
Rank 1
answered on 25 Jul 2013, 08:47 AM
As I cannot attach sample project here, and this is not a bug, that require opening support ticket, please download the sample project from here:
https://dl.dropboxusercontent.com/u/16374949/CheckBoxesSample.zip

 It's not a big bug, but maybe You would like to fix it in future releases ;)

Enter some text in the top text box (e.g. Modi). Then check the remaining child element. Then remove the filter text ;) The parent element's check state remains "checked" instead of changing to undeterminate...

Best regards
Marcin Danek
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 29 Jul 2013, 02:28 PM
Hello Marcin,

Thank you for providing us with detailed information about your scenario. Now I understand your issue. You need to keep in mind that the tri-state logic of the RadTreeView control is designed to work with XAML defined control and items, only. In case that your scenario implements MVVM you can use the approach described in this article.

Please take a look at it and let me know if it works for you.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Marcin
Top achievements
Rank 1
answered on 29 Jul 2013, 02:51 PM
Thank You very much for Your help. I'll fix the code according to Your suggestions.

Best regards
Marcin Danek
Tags
TreeView
Asked by
Marcin
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Marcin
Top achievements
Rank 1
Share this question
or