New to Telerik UI for WinForms? Download free 30-day trial


RadTreeView provides a large set of events which allows you to respond to node interactions.

  • NodeAdded/NodeAdding - the events occur before and after node is added.

  • NodeRemoved/NodeRemoving- the events occur before and after node is removed.

  • NodeExpandedChanged/NodeExpandedChanging - the events occur before and after node is expanded or collapsed.

  • NodeMouseClick/NodeMouseDoubleClick - the events occur when a node is clicked or double clicked.

Since R3 2020 the NodeMouseClick/NodeMouseDoubleClick events offer one additional parameter which allows access the original MouseEventArgs. It is neccessary to cast the event arguments to RadTreeViewMouseEventArgs.

private void RadTreeView1_NodeMouseClick(object sender, RadTreeViewEventArgs e)
    RadTreeViewMouseEventArgs args = e as RadTreeViewMouseEventArgs;
    if (args.OriginalEventArgs.Button == MouseButtons.Right)
        //TO DO

Private Sub RadTreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As RadTreeViewEventArgs)
    Dim args As RadTreeViewMouseEventArgs = TryCast(e, RadTreeViewMouseEventArgs)

    If args.OriginalEventArgs.Button = MouseButtons.Right Then
    ' TO DO
    End If
End Sub

The above events are using RadTreeViewEventArgs and RadTreeViewCancelEventArgs objects to provide you with useful information inside the events. The main difference is that you can cancel the interaction in the second case. These objects are exposing the following information:

Parameter Description
Action Indicates how the node was changed. Can have the following values: ByKeyboard; ByMouse; Unknown.
Node The node that has been changed.
TreeElement Gives the main TreeView element the node belongs to.
TreeView Returns the TreeView control that holds the current node.
Cancel Allows you to cancel the change.(Only available in the RadTreeViewCancelEventArgs object)

See Also

In this article
Not finding the help you need? Improve this article