Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data grid] Add ability to make certain column filters required #12790

Open
sfrancisRND opened this issue Apr 15, 2024 · 1 comment
Open

[data grid] Add ability to make certain column filters required #12790

sfrancisRND opened this issue Apr 15, 2024 · 1 comment
Labels
component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature feature: Filtering Related to the data grid Filtering feature

Comments

@sfrancisRND
Copy link

sfrancisRND commented Apr 15, 2024

Summary

Add new properties on the grid column definition for if a filter is required on that column and the default filter value. Then in the filter list popup, that filter will not be able to be deleted but the filter value can be changed.

Examples

This is what the current filter popup looks like now:
Current
Current2

This is the desired look if the Start Date/Time and End Date/Time filters were required:
Request
Request2

The two date/time filters have no delete button and the column selection dropdown is disabled. The value of the filter is still editable, but the entire line cannot be removed.

Motivation

To be able to filter down a large list of results so when any other non-required filters are cleared, the datagrid is not getting cluttered with a bunch of records.

Search keywords: filtering
Order ID: 88442

@sfrancisRND sfrancisRND added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 15, 2024
@michelengelen
Copy link
Member

Hey @sfrancisRND ... thanks for raising this feature request.
I guess this is doable. Maybe by adding a required prop to the filterModel entries?

I will add this to our board.

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature enhancement This is not a bug, nor a new feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature feature: Filtering Related to the data grid Filtering feature
Projects
None yet
Development

No branches or pull requests

2 participants