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
1770
select all child nodes of parent node
posted

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?

Parents
  • 1770
    posted

    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>

Reply Children
No Data