vaadin / vaadin/docs

TreeGrid multiselection example

Open
#4,284 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design system
Dominant language
AsciiDoc
Stars
38
Forks
225
Avg merge
1d 4h
Merged PRs (30d)
170

Description

A relatively common usage for TreeGrid is hierarchical selection. Since TreeGrid is based on Grid, the selection doesn't care anything about hierarchy; you just select rows. It would be useful to have a code example of how you can implement multiselection in a TreeGrid so that e.g. selecting a parent node automatically selects all of its children as well, and vice versa.

Even better would be an example where selecting a parent and then deselecting one of its children shows the parent as having a partial selection (indeterminate state checkbox).


If you think this issue is important, add a 👍 reaction to help the community and maintainers prioritize this issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the TreeGrid documentation and the Grid-based selection behavior described in the issue. Add a code example covering parent-child multiselection, including the indeterminate parent state after a child is deselected; the documentation is done when both interactions are demonstrated clearly.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.