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

How to know selected items of treeview are changed. which items are newly checked or unchecked?

1 Answer 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yang
Top achievements
Rank 1
Yang asked on 13 Aug 2010, 12:25 AM
I have a hierarchical tree view. If I check or uncheck some items, how do I know selected items are changed and which are added, which are removed?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 17 Aug 2010, 08:39 AM
Hi Yang,

The (Preview)SelectionChanged event can be used to track the selection.

Then the Checked/Unchecked events will fire when the CheckState of the TreeViewItems changes.

The treeView.CheckedItems collection contains all checked items that the TreeView can keep track of.

An article about the TreeView events can be found here:

http://www.telerik.com/help/silverlight/radtreeview-events-overview.html

Sincerely yours,
Miroslav
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
Yang
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or