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

NodeMouseUp not working on checkbox

1 Answer 62 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Chris Burtch
Top achievements
Rank 1
Chris Burtch asked on 08 Jun 2011, 07:31 PM
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

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 10 Jun 2011, 03:24 PM
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.
Tags
Treeview
Asked by
Chris Burtch
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or