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] "singleSelect" column type is not working for columns with multiple values in single columns as comma-separated Values #17079

Open
sunitchoche333 opened this issue Mar 21, 2025 · 1 comment
Labels
component: data grid This is the name of the generic UI component, not the React module! customization: logic Logic customizability feature: Filtering Related to the data grid Filtering feature new feature New feature or request status: waiting for author Issue with insufficient information

Comments

@sunitchoche333
Copy link

sunitchoche333 commented Mar 21, 2025

Summary

I have a column where multiple values need to be displayed in renderCell and stored as a comma-separated string using valueGetter. However, when I set the column type to singleSelect and provide the values for rendering, filtering does not work as expected.

If I select a single value in the filter, and that value is present in a row with multiple comma-separated values, the row is not returned because it contains additional values alongside the selected one."

Examples

For example, consider a Status column with the following values:

User 1: "Started, Midway"
User 2: "Processed, Completed"

If I set the column type to singleSelect and provide the values to valueOptions for the select dropdown:

Available options in filters dropdown: "Started", "Midway", "Processed", "Completed"

When selecting any of these options, filtering does not work correctly for predefined operators like "is", "is not", and "is any of", because the column contains multiple comma-separated values instead of a single distinct value.

Motivation

No response

Search keywords: singleSelect, column types, multiple values

@sunitchoche333 sunitchoche333 added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 21, 2025
@sunitchoche333 sunitchoche333 changed the title "singleSelect" column type is not working for columns with multiple values in single columns as comma-separated Values [Data Grid] "singleSelect" column type is not working for columns with multiple values in single columns as comma-separated Values Mar 21, 2025
@michelengelen
Copy link
Member

To help us diagnose the issue efficiently, could you provide a stripped-down reproduction test case using the latest version? A live example would be fantastic! ✨

For your convenience, our documentation offers templates and guides on creating targeted examples: Support - Bug reproduction

Just a friendly reminder: clean, functional code with minimal dependencies is most helpful. Complex code can make it tougher to pinpoint the exact issue. Sometimes, simply going through the process of creating a minimal reproduction can even clarify the problem itself!

Thanks for your understanding! 🙇🏼

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information feature: Filtering Related to the data grid Filtering feature customization: logic Logic customizability and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 24, 2025
@michelengelen michelengelen changed the title [Data Grid] "singleSelect" column type is not working for columns with multiple values in single columns as comma-separated Values [data grid] "singleSelect" column type is not working for columns with multiple values in single columns as comma-separated Values Mar 24, 2025
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! customization: logic Logic customizability feature: Filtering Related to the data grid Filtering feature new feature New feature or request status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants