Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thangdemons2001 opened this issue Oct 23, 2022 · 0 comments

Comments

@thangdemons2001
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant