Hi everyone,
Rendering columns within the `Grid` component using the `map` function is not working as expected. For example:
Rendering columns within the `Grid` component using the `map` function is not working as expected. For example:
- When defining the `GridColumn` properties, such as `cell`, the `className` property doesn't apply as expected. If I remove the cell property from the GridColumn component it works as expected.
- If I don't explicitly define the `headerCell` property, the filter icon (three dots) isn't visible. Hence, I need to manually add the filter options in the header cell.
Note: Everything works as expected when I define each column component individually, without using the `map` function approach.
Objective: I need to display 20+ columns in the grid, and I want to avoid manually defining each `GridColumn` component. Instead, I would like to dynamically render the columns using the `map` function. In my case, the column headers are custom components, and the column filter functionality should be displayed conditionally.Please find the attached file with implementation.
I kindly request your help. Thank you.