Skip to content

docs: show how to reveal matching items when filtering Tree Grid - #6197

Merged
vursen merged 2 commits into
mainfrom
docs/tree-grid-reveal-filtered-items
Sep 28, 2026
Merged

vursen merged 2 commits into
mainfrom
docs/tree-grid-reveal-filtered-items

Conversation

@totally-not-ai

Copy link
Copy Markdown
Contributor

Setting a filter on a TreeDataProvider keeps the whole path from the root to each matching item, but collapsed ancestors stay collapsed, so matches deeper in the tree aren't visible.

This adds a short example to the Filtering Items section of components/tree-grid/data-binding.adoc. The example expands the filtered tree with expandRecursively, fetching the root items from the data provider so that filtered-out roots are excluded, and explains the HierarchicalQuery arguments. A note says that items expanded this way stay expanded when the filter changes.

This change was split out of #6185.

🤖 Generated with Claude Code

Setting a filter keeps the paths to matching items, but collapsed
ancestors stay collapsed. Document expanding the filtered tree with
expandRecursively, fetching the root items from the data provider so
that filtered-out roots are excluded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
totally-not-ai Bot added a commit that referenced this pull request Sep 28, 2026
It's now proposed in #6197.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6197.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from c54b69a

Comment thread articles/components/tree-grid/data-binding.adoc Outdated
@vursen
vursen marked this pull request as ready for review September 28, 2026 09:29
@vursen
vursen enabled auto-merge (squash) September 28, 2026 09:29
@vursen
vursen merged commit de8984c into main Sep 28, 2026
9 of 10 checks passed
@vursen
vursen deleted the docs/tree-grid-reveal-filtered-items branch September 28, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant