Skip to content

Dynamic TableHeaderColumns with search and exportToCSV props doesn't work in BootstrapTable #2142

Description

@thangdemons2001

I am creating a table like this. I am using react-bootstrap-table version 4.3.1
image
The students data look like this
[ { id: 1, firstName: abc, lastName: xyz, listAtten:[ { date: 9-10, status: A}, { date: 16-10, status : P } }, { id: 2, firstName: cde, lastName: ijk, listAtten:[ { date: 9-10, status: P}, { date: 16-10, status : A } }, {...} , {...} ]. The Attendance header column will group all the student's attendance date.
This code is oke and work as I expected. Note that my students[0] is set to { id:0 } by default before I call API to set it to another value
image

image

image
but when I add the search props or exportToCSV props its throw error
image
image
Please help me with this issue, I cant use react-boostrap-table2 because it's doesn't support header column grouping

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions