Remove a checked node does not update the CheckedItems collection

4 posts, 0 answers
  1. Anne Lyon
    Anne Lyon avatar
    90 posts
    Member since:
    Jan 2010

    Posted 17 Mar 2010 Link to this post


    I have noticed that when I remove a checked node programmatically, this node is still listed in the CheckedItems collection. If the removed node has children where some are also checked, the same applies. This makes it difficult whien I later want to traverse through my CheckedItems, as nodes are listed that are not longer present in the treeview (and their FullPath is null).
    Do I have to explicitly uncheck a node and all its children before I remove it? Is this a bug or is it intended behaviour?
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 22 Mar 2010 Link to this post

    Hi Anne Lyon,

    Thank you for reporting the issue. It is a bug.

    We apologize for the caused inconvenience and we will do our best to fix it as soon as possible.

    Your Telerik points have been updated accordingly.

    In the meantime, the workaround is to explicitly uncheck the items before they are removed. If you need an example, please let me know and I will send you one.

    Any additional comments/reports are highly appreciated.

    All the best,
    Tina Stancheva
    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.
  3. John Gartee
    John Gartee avatar
    7 posts
    Member since:
    Mar 2004

    Posted 28 Sep 2011 Link to this post

    I am running 2011.2.712.1040 and am still seeing this error.  Is it supposed to have been fixed (as it was over a year ago and 4 quarterly releases have come and gone since then). 

    In my case, the TreeView is bound to an ObservableCollection of objects.  When the collection is updated by removing items who's containers were previously checked, the checkeditems collection remains containing items that are not even in the treeview's itemssource collection.  I am assuming this was the same behavior as the original post.

    So, again, just when is this slated to be corrected?

  4. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 03 Oct 2011 Link to this post

    Hello John Gartee,

    Indeed the issue is the same. Unfortunately it isn't addressed yet due to the many pressing tasks in our to-do list. However, you can increase this item's priority by voting for it in our PITS.

    Please accept our apology for this inconvenience.

    All the best,
    Tina Stancheva
    the Telerik team

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

Back to Top