Hi,
On double clicking of a node I need to add it within a grid, that functions well as long as the user does not double click anywhere else in the control, that is the white space within the control or the scroll bar!!!....in those cases the double click event also fires and wrecks the app.
NodeDouble click is of no use as it only gives functionality about expanding....why can't you simply have a node double click even and leave the user to use it. Any workarounds for the situation. at present I am planning to set up some flags on mouse enter or mouse down....ughhhhh......the double click handling seems ugly to me....
What's wrong with the NodeDoubleClick event? If you don't want double-clicking on a node to automatically expand the node, set the NodeDoubleClickAction property .
No I was't saying that I dont want a node not to expand on double click.
What I want is that we should be able to customize the action that takes place on a double click. Currently, the NodeDoubleClickAction can be assigned only from an enumeration, which mean pretty much all I can do with it is either expand or collapse a node.
In my UI on double clicking a node, I was adding it some other UI control (let's say a dropdown), but since I cannot set any custom action for NodeDoubleClickAction, I will have to use the simple DoubleClickEvent, which means it will fire if the user click on any place within the surface of tree control and not just for the node that is clicked.
Also, I am now a bit confused, you mention NodeDoubleClick Event, but I dont think that is exposed actually, what we are exposed is a NodeDoubleClickAction property which we can assign from an enumeration...correct me if I am wrong.
Also am using the infragistics 6.1 version, in case the functionality is different in the newer version.
Right now I am using the GetNodeFromPoint method to find out whether the actual click happened on a tree node or some other place. But it does look a bit odd that double click event of a tree control should fire when it's scroll bar is clicked and not even send any information regarding that.