We are using the xamDataTree and would like the node to expand/collapse on a double click. Is there a simple way to do this?
Thanks,Doug Rees
Polo Ralph Lauren.
Hello,
Do you have a more suitable solution?
This isn't clean, Its raised when you double click everywhere on the XamDataTree.
Do you have something better?
Thanks Petar. That was useful.
Jowen
Hello Doug,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
I have been looking into this for you and handling the MouseDoubleClick event of the XamDataTree seems to be the simplest way. Here is a code snippet that does what you need:
private void xamDataTree1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
xamDataTree1.ActiveNode.IsExpanded = !xamDataTree1.ActiveNode.IsExpanded;
}
Please let me know if I can assist you any further on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi,
There is no XamDataTree feature that would enable that behavior out of the box.
You could listen to mouse click events and do it on your own.
Note also that you can also have node enter edit mode on double click, so I if you are using that you should make sure there are no conflicts.
HTH,