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
75
Event firing with the UltraWinTree
posted

I'm not having much luck registering for user interaction with my UltraWinTree.  There seems to be very few events I can register for.

What I want is to know when the user clicks a parent node so that I can go through all the children and select them as well.

My nodes do not have the NodeStyle property set to CheckBox, because for whatever reason, I cannot do this AND have the ViewStyle set to FreeForm (which, why is that?).  And, to answer your question, I have the ViewStyle set to FreeForm so I can implement a ColumnSet with various data types.

Here's what I have:

- Parent 0: Column 0 = bool, Column 1 = string 

    -  Child 0: Column 0 = bool, Column 1 = string, Column 2 = int, Column 3 = string

    -  Child 1: Column 0 = bool, Column 1 = string, Column 2 = int, Column 3 = string

    -  Child n: Column 0 = bool, Column 1 = string, Column 2 = int, Column 3 = string

When Parent 0 is clicked, I want to go through Child 0 through n and select them as well.  But, I have no knowledge of when Parent 0 is clicked.

 

Any suggestions?

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    Do you only want to do this when the use clicks on a node? Or any time the node is activated? Nodes can also be activated via the keyboard.

    If you only care about clicking, then you will need to use the MouseDown or MouseUp events and get the node that was clicked with the GetNodeFromPoint method.

    If you want to track any time the active node changes, use the AfterActivate event.

    If you are using selection, then another event you might consider is the AfterSelect event.

Reply Children
No Data