gregnb / gregnb/mui-datatables

get column names with filterList while using customfilterDialogFooter

Open
#1,592 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

I am trying to apply server side filtering using the customFilterDialogFooter options. However, the callback function applyNewFilters" does not return the column names with the values.

## Expected Behavior

I would ideally want to get return something like following:
``
[
(column1Name , [filtervalues]),
(column2Name , [filtervalues]),
(column3Name , [filtervalues]),
]
``

## Current Behavior

The current behavious does not return the column Names:

I would ideally want to get return something like following:
``
[
[filtervalues for col1],
[filtervalues for col2],
[filtervalues for col3],
]
``

I understand that it should not be very difficult to get the columns with the indices but for the case of re-ordering the columns, this would get a very complex business to mange. Am I missing something?

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | |
| MUI-datatables | |
| React | 16 |
| browser | |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the customFilterDialogFooter option and its applyNewFilters callback in the MUI-datatables implementation. Reproduce server-side filtering with reordered columns, then verify that the callback exposes each filtered column name together with its filter values rather than values indexed only by column position.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.