-
Currently, when using a TreeView with multiselection mode, when the parent's "selected" state changes, its children's "selected" state changes with it. Visa versa, when a child's "selected" state changes, the parent's state may change. Is there a way/option to change the default behaviour and make the "selected" state of child and parent independent of each other? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't think this is how a TreeView should work. The state of the parent NEEDS to reflect the state of the children. If the parent is marked, the users will assume that all the children are marked as well. For independent relations, you may need to create a custom widget. |
Beta Was this translation helpful? Give feedback.
-
I understand the visibility aspect of it, but in my use-case (a report of financial expenses) a selected parent has a different meaning. In below example, the selected parent means: Show in the Expense report, the total expenses of all selected children combined, but do not show the children separately.
While the following example means: "Show me each selected expense category separately"
Any suggestions? |
Beta Was this translation helpful? Give feedback.
I don't think this is how a TreeView should work. The state of the parent NEEDS to reflect the state of the children. If the parent is marked, the users will assume that all the children are marked as well.
For independent relations, you may need to create a custom widget.