gregnb / gregnb/mui-datatables

Unable to show/hide columns with CustomRowRender

Open
#1,250 11 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

## Expected Behavior

I would like to be able to use customRowRender in tandem with show/hide columns functionality

## Current Behavior

Currently no information on which columns to display is passed through to the customRowRender function, and it takes quite a bit of effort to set something up that replicates doing so.

## Steps to Reproduce (for bugs)

1. Run the Custom Row Render example included with mui-datatables
2. Hide one of the columns
3. The column is still displayed in the row.

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 4.9.7 |
| MUI-datatables | 2.14.0 |
| React | 16.9.26 |
| browser | Chrome 81 |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Custom Row Render example included with mui-datatables and trace how customRowRender receives row data alongside the show/hide columns state. Reproduce the issue by hiding a column, then verify that hidden columns are no longer displayed in the custom-rendered row.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.