How to prevent the selection of child nodes from another root node #126
floriankuek
started this conversation in
General
Replies: 1 comment 1 reply
|
The structure looks something like this? One way could be to implement beforeSelect(e) {
const selTopNode = e.node.getParentList()[0];
for (const node of e.tree.root.children) {
if (selTopNode !== node && node.isPartsel()) {
return false;
}
}
}, |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I'm wondering if there's a simple way to prevent the selection of child nodes from root node B when I have child nodes selected on root Node A and vice versa. To give some context I have two sources where each represents a local filesystem. I want to prevent the user to be able to select child nodes from both filesystems at the same time. A user should only ever be able to select child nodes from one root node at a time.
I use the following options
selectMode: "hier"andcheckbox: true.Thanks in advance and for your work on this project! It's an amazing project!
All reactions