Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Conversation

@JakkuSakura
Copy link

@JakkuSakura JakkuSakura commented Aug 31, 2025

  • Introduce IsFilterEnabled option for text columns
  • Add ShowColumnFilters property to TreeDataGrid
  • Implement filter UI in column headers and wire up filter logic
  • Update FlatTreeDataGridSource to handle column filters and filter application
  • Update templates and view models to enable filtering for relevant columns
image

- Introduce IsFilterEnabled option for text columns
- Add ShowColumnFilters property to TreeDataGrid
- Implement filter UI in column headers and wire up filter logic
- Update FlatTreeDataGridSource to handle column filters and filter application
- Update templates and view models to enable filtering for relevant columns
@JakkuSakura JakkuSakura changed the title Add column filtering support to TreeDataGrid Add filtering support to TreeDataGrid Aug 31, 2025
@0x90d
Copy link

0x90d commented Sep 1, 2025

It would be great if filter text were a property you can bind to. Then developers would have more control over how they want to use the filters and display them in the user interface. Because as much as I like the feature, I don't like the textboxes underneath the column names. If you can do this its great, but it would be better if its more flexible.

Furthermore, as much as I appreciate your work, I'm not sure if it's generally a good idea to add a filter just for text columns. Ideally, the code should at least be designed in such a way that it could support other columns later on (if not right from the start).

@JakkuSakura
Copy link
Author

Thanks for the feedback. I'm not in a hurry to merge the PR, but just to share my work early. Will take the ideas into further design

@JakkuSakura
Copy link
Author

image

Now it supports custom filtering logic and control. I'm not sure how to work with Bindings, but you can set prompt text in the options

@JakkuSakura
Copy link
Author

One more note: the architecture of TreeDataGrid is not clean enough to add new features easily. I have to work around type systems from time to time. Maybe it's the issue for all MVVM frameworks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants