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

In Code check and uncheck

1 Answer 31 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rick Knicely
Top achievements
Rank 1
Rick Knicely asked on 25 Jun 2010, 10:05 PM
When I check and then uncheck a tree node (in code C#)  that is in tri-state mode and I have never opened all of the nodes below a common parent the nodes are not unchecked properly.

If I open all of the nodes first manually by clicking them with the mouse then close all the nodes then do the same in code (C#) everything works fine.

I have tried many things in code such as expanding and closing nodes, however nothing seems to work unless I have used the mouse to expand the nodes first.

Any ideas?

thank you,
Rick

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 01 Jul 2010, 01:04 PM
Hi Rick Knicely,

Please accept my apology for the delayed response.

At the moment the described behavior is expected since the RadTreeViewItems are not  aware of the CheckState of their sub items until they are expanded. Therefore the CheckState of the parent items doesn't update when a sub item is checked or unchecked in code behind.

However, I logged the issue as a feature request in our PITS under the name: TreeView: The CheckState of TreeViewItems that has never been expanded, doesn't update accordingly to the CheckState of their sub items where you can vote for it. If it gathers enough popularity we will definitely consider implementing it.

I also updated your Telerik points accordingly.

Best wishes,
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
Tags
TreeView
Asked by
Rick Knicely
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or