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

Tree view node check box uncheck event

3 Answers 201 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
kiran
Top achievements
Rank 1
kiran asked on 26 Jun 2008, 07:13 AM
Hi Telerik,

For tree view we have a method to get the selected nodes (treeview_afterselect) but how to identify the uncheck event. Is there any method or any workaround to get the same?

please share some sample code. It is very urgent for me. Please help us.

Help is highly appreciated.

Regards,
Kiran

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 27 Jun 2008, 01:42 PM
Hello kiran,

Thank you for the question.

RadTreeView implements the NodeCheckedChanged event, which fires when you check or uncheck the checkbox of a node. The node's Checked value determines whether this node's checkbox is checked or unchecked.

If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
kiran
Top achievements
Rank 1
answered on 01 Jul 2008, 02:07 PM
Hi Nikolay,

On NodeCheckedChanged event i have to get the nodes list which have been checked. i have used "selectedNodes" property but it is giving only the currently checked node.

Please share me sample code or any approach to get all the checked nodes.

Help is highly appreciated.

Regards,
Kiran
0
Nikolay
Telerik team
answered on 04 Jul 2008, 08:17 AM
Hello Kiran,

The SelectedNodes property will only give you the currently selected nodes, with no regard of what their Checked state.

I have demonstrated in the  attached sample project how you should work with the collection of checked nodes. In the NodeCheckedChanged event handler, you should recursively traverse the nodes in the RadTreeView to check whether they have their Checked property set to true. If so, you should Add these nodes to a BindingList collection representing the CheckedNodes collection.

If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Treeview
Asked by
kiran
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
kiran
Top achievements
Rank 1
Share this question
or