CheckState refresh after collection changed

5 posts, 1 answers
  1. Marcin
    Marcin avatar
    31 posts
    Member since:
    Jul 2013

    Posted 24 Jul 2013 Link to this post

    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
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 25 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Marcin
    Marcin avatar
    31 posts
    Member since:
    Jul 2013

    Posted 25 Jul 2013 Link to this post

    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
  5. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 29 Jul 2013 Link to this post

    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 >>
  6. Marcin
    Marcin avatar
    31 posts
    Member since:
    Jul 2013

    Posted 29 Jul 2013 Link to this post

    Thank You very much for Your help. I'll fix the code according to Your suggestions.

    Best regards
    Marcin Danek
Back to Top
DevCraft banner