-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 multipleSelect
column type
#4410
Comments
Hi, here is a draft solution. The following demo has a column https://codesandbox.io/s/columntypesgrid-material-demo-forked-4bbcrv?file=/demo.js
valueFormatter: ({ value }) => (value ? value.join("/") : ""),
renderEditCell: CustomDiscountEditCell,
filterOperators: [
{
value: "contains",
getApplyFilterFn: (filterItem) => {
if (filterItem.value == null || filterItem.value === "") {
return null;
}
return ({ value }) => {
// if one of the cell values corresponds to the filter item
return value.some((cellValue) => cellValue === filterItem.value);
};
},
InputComponent: CustomFilterInputSingleSelect
}
] |
I added the "waiting for 👍" label. If this gets enough votes we can add a new column type based on |
multipleSelect
column type
works great. Thanks! (do i leave this open?) BTW i also needed to add a corresponding GridComparatorFn :) |
Yes, leave it open such that we can track upvotes or any comments. You have to provide a custom function to If you need some inspiration, the default column definitions of each type are in the |
My team is on the Pro plan and we would really like this. |
My team and I are on the pro plan and would like to have this ! |
It's very effective but doesn't work for situations with tons of options. I used autoComplete for this in v5, and now that I've updated some of the details I find that it still works:
calling this like this:
|
Any update on this one? |
We would also like to see this implemented, is there any status update? |
Order ID 💳
41465
Duplicates
Latest version
The problem in depth 🔍
I have a column that contains a list of tag names. Presently I render using rowItem.tagNames.join(' '). But I also want to filter with a select list rather than simple strings. When I define the column as type: 'singleSelect' and define the valueOptions with existing tag names, this works when a row has just one tag. How can i set up the column for cells to contain more than one tag. (Filtering on just one of the tags at a time is fine).
Benchmark
Similar requests
The text was updated successfully, but these errors were encountered: