gregnb / gregnb/mui-datatables
Hide/Show columns of inner/expanded rows on basis of "View Columns" option of table.
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I want to Hide/Show columns of inner/expanded rows on basis of "View Columns" option of table. Is there any way to do that.
Currently I am trying to do with "onViewColumnsChange" but not working because I need the values in "renderExpandableRow" as well.
Kindly provide some solution.
You can check my code here:
https://codesandbox.io/s/dreamy-meadow-oghwd?file=/src/App.js
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the behavior in the linked CodeSandbox and trace how onViewColumnsChange and renderExpandableRow receive table state. Determine the intended behavior for expanded rows when columns are hidden or shown, then verify that the solution keeps both regular and expanded rows consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100