Skip to content

[data grid] "singleSelect" column type is not working for columns with multiple values in single columns as comma-separated Values #17079

Open
@sunitchoche333

Description

@sunitchoche333

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions