Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Select multiple nodes and expand/contract
posted
Infragistics staff,

Is there a way to configure the tree to allow multiple node selection over
many branches and levels of the tree?

That is, is there an option that can be set such that any node shift-clicked
or control-clicked will be added to the SelectedNodes TreeNodesCollection?

Using Override.SelectionType=Extended currently seems only to allow selection
of the nodes of the same level under a single branch.

A second problem we are having:

When quickly navigating through a tree, our clients click the disclosure
buttons (+/- buttons to the left of the nodes) quickly to check their contents.
Unfortunately this is recognised by the tree as a Double-Click event, which
in our program raises a dialog to edit the node.

Are you aware of a way to remove the double-click event, or of a better event
to which I may bind the edit dialog?

Kind regards,
Frans Henskens
Software Engineer - Product Development
Bureau Veritas Asset Integrity and Reliability Services
  • 69832
    Offline posted

    1. The control does not currently support selection across different Nodes collections.

    2. The control exposes a GetNodeFromPoint method; you can call this method before displaying you dialog, and only display it if the return from the method is non-null. Note that the method takes client coordinates, so if you call it from the DoubleClick event and get the current cursor position, you would have to convert that point to the control's coordinate system first (using UltraTree.PointToClient).