Tree view node check box uncheck event

4 posts, 0 answers
  1. kiran
    kiran avatar
    36 posts
    Member since:
    May 2008

    Posted 26 Jun 2008 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 27 Jun 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. kiran
    kiran avatar
    36 posts
    Member since:
    May 2008

    Posted 01 Jul 2008 Link to this post

    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
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 04 Jul 2008 Link to this post

    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
Back to Top