Hello. I have:
private void BiPoleTree_OnActiveNodeChanged(object sender, ActiveNodeChangedEventArgs e) { if (e.NewActiveTreeNode.Manager.ParentNode == null) { var parentIndex = e.NewActiveTreeNode.Index; foreach (var node in BiPoleTree.Nodes[parentIndex].Nodes) { BiPoleTree.SelectionSettings.SelectedNodes.Add(node); } } }
NodeSelection = TreeSelectionType.Multiple has been set in xaml. So when the event gets fired nothing happens unless I hold the control key. Is there any way around that? What is the best way to handle that?
Hello Kris,
Thank you for sharing. This information could be useful for other community members as well.
I just wanted to add if someone else would like to select a node the IsSelected property could also be used. Here is a documentation page on the subject: http://help.infragistics.com/Doc/WPF/2010.3/CLR4.0/?page=xamDataTree_xamDataTree_Selection.html
I was able to achieve what I wanted by just using checkboxes rather than playing around with selections.
<ig:XamDataTree.CheckBoxSettings> <ig:CheckBoxSettings CheckBoxVisibility="Visible" /> </ig:XamDataTree.CheckBoxSettings>