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

Remove a checked node does not update the CheckedItems collection

3 Answers 50 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Anne Lyon
Top achievements
Rank 1
Anne Lyon asked on 17 Mar 2010, 11:21 AM
Hello,

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?

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Mar 2010, 04:05 PM
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.
0
John Gartee
Top achievements
Rank 1
answered on 28 Sep 2011, 09:59 PM
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 unchanged...now 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?

thanks,
0
Tina Stancheva
Telerik team
answered on 03 Oct 2011, 04:21 PM
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 >>

Tags
TreeView
Asked by
Anne Lyon
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
John Gartee
Top achievements
Rank 1
Share this question
or