Proposal: Treeview SelectionMode Multiple select only parent
Hello,
it would be great to select only the parent node.
As far as i can see in multiple mode i can`t only select parent node.
@mani009 - thank you for filing this feature request. Could you please elaborate on your scenario for needing to select the parent without selecting it's child nodes by default? We could provide you with some solutions accordingly once we complete our current roadmap for WinUI3.0: https://github.com/microsoft/microsoft-ui-xaml/issues/717
It captures the investments we're currently actively working on. Please do review it and provide us with your feedback!
@predavid Hy predavid thank`s for your response,
I use the treeview for example for an preselection for the print preview to select different documents to print. It would be nice the user can only select the parent Treeviewnode. Or another possibility would be great if the Treeview has the SelectionMode Extended as the UserControl Listview to select exactly the documents are needed.
Great Work!!!
We should also be able to select parent only, without children.
Currently, when SelectionMode is set to Multiple, selecting a parent selects all its children, which is super frustrating as there's no way to disable that behavior.
Hello, I’m currently facing this issue as well, and it’s indeed very frustrating.
Here is a concrete scenario where selecting only the parent node would be extremely useful:
We are developing an application that lets users choose which folders to sync. The selection UI is a TreeView in Multiple selection mode. Only folders are displayed:
For example, if the user wants to sync the folder “Common documents” and its files but not any of its subfolders, they will naturally unselect all the subfolders. However, as soon as all children folders are unselected, the parent folder is automatically unselected as well, even though the user explicitly wants the parent to remain selected.
In this context, selecting a parent independently of its children is essential. The current behavior forces a selection cascade that doesn’t always match the user’s intent and makes this UX impossible to achieve.
A way to allow selecting only the parent node, without automatically selecting or deselecting its children, would solve this problem and make the control much more flexible for real-world use cases.
FYI: Here is how it currently look like with the QT framework:
Thanks for considering this improvement!