NodeMouseUp not working on checkbox

2 posts, 0 answers
  1. Chris Burtch
    Chris Burtch avatar
    5 posts
    Member since:
    Apr 2005

    Posted 08 Jun 2011 Link to this post

    Forgive me if I am missing something. I was using the NodeMouseUp event to detect when a node was checked or unchecked. The reason I used this and not the NodeCheckedChanged is that NodeMouseUp only fires once whereas NodeCheckedChanged fires for every node checked and when you select the parent node it fires for every child node. The NodeMouseUp worked fine till I upgraded to Q1 2011. Perhaps there is a better way to do what I want. I simply want to know when the selections for the entire tree have been changed and then refresh my GridView based on the values. 

    Thank You
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 10 Jun 2011 Link to this post

    Hello Chris,

    In the new version Q1 2011, we have redesigned the RadTreeView control. Now instead of custom painting, we are using visual element hierarchy that comes out of the box with Telerik Presentation Framework. Hence, every element is responsible for raising its events. If many customers complain about the illustrated behavior, we will consider it as an issue. In the meantime, you can use the NodeFormatting event to enable the old event life cycle:

    private void radTreeView1_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
    {
        if (e.NodeElement.ToggleElement != null)
        {
            e.NodeElement.ToggleElement.NotifyParentOnMouseInput = true;
        }
    }

    I hope this helps.

    Kind regards,
    Svett
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top