gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 932 forks source link

Applying filter removes Columns from View Columns #1874

Open ludvigaldrin opened 2 years ago

ludvigaldrin commented 2 years ago

Expected Behavior

I want all Columns selected in View Columns to stay wether I filter or not.

Current Behavior

If I have selected Columns to be shown through View columns (columns that have option display: false) and apply a filter my selected View Columns are resetted to default layout. Same goes if I search. So all manipulation of data will rerender Columns.

Steps to Reproduce (for bugs)

  1. Select a Column to be shown from View Columns
  2. Filter or Search
  3. Selected Columns have been resetted to default layout

Your Environment

Tech Version
Material-UI 5.2.7
MUI-datatables 3.7.8
React 17.0.2
hanaabuhatzira1 commented 1 year ago

any updates on this issue ?