-
Notifications
You must be signed in to change notification settings - Fork 429
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
Multiple Header Rows support? #617
Comments
@bookworm2death firstly, say thanks to you. Currently, I dont have plan to support the header colspan or rowspan. However, I will try to implement it ASAP. Sorry I can not tell you when I can support it. It's depends on my time. thanks! |
Hi @bookworm2death, were you ever able to get this to work? I see they have an example on the React Bootstrap Table home page, but I must be missing how to do this in the docs. |
@bookworm2death any luck with this? |
@arhimmel It looks like they removed that feature in the current versions. I ended up going with a different solution. |
any news about multi header? |
Can we revisit this? I was excited when I saw the image on the homepage, but disappointed that it is not a feature. |
Hi @AllenFang, Were you able to put this feature on the roadmap? The example image on the homepage looks promising, but I cannot find an implemented example of the multiple header rows. |
Any update? |
Ended using http://allenfang.github.io/react-bootstrap-table/example.html , that supports header groups |
Hi team Any update on this? |
I also would like to know 👍 |
Any update? |
1 similar comment
Any update? |
Any news on this? This seems like a really important function and I'm surprised it's not included yet. |
hi, any update? |
At least give us a way of hooking into the header so we can implement ourselves. There's no work around to this and something completely normal for HTML tables. It's been 4 years. |
Any update on this ? @AllenFang |
Last release was 2018. Not a single one of the 38+ contributors has commented in years. |
I know a doomed requested feature when I see one, but bump anyway. |
can we combine bootstrap tags and react bootstrap table next component? |
I finally got a chance to take another look at grouped headings. @Atchaya-Kodeeswaran your approach can of course work but we lose column sort, and all sortValue/filterValue/etc... all need to implement all grouped values into the combo grouped column. The format and filter definition functions can be implemented all at one, but sorting is gone. Your work around is fine for unsorted columns. Thanks for the contribution. |
Also, like every Node project this one has a million build dependencies and specialized tweaks. I tried patching it, but simply building is a challenge in itself. |
OK, I used The styling and the real header row work out, sorting and filtering work. However I'll need to do a bit more work to deal with column widths which, though it can be set in headerStyle, only the top/highest TD width will dictate the column width. For nested heading to work you need a matching TD above the existing TDs, even if they're not colspanned with a title. Here's my patch file:
|
Note that I account for the existence of the selectRow prop (the checkbox first column) and bump the index of which columns to colspan over by 1 in a component that includes BootstrapTable. |
Code: |
You'll loose sorting. See my comment above and the other person that suggested something similar. Also your example doesn't appear to be related to this React component, it's just a table. In this component you can format the header and define columns, separately. Sorting doesn't automatically get attached to your own custom heading format. It's an integrated feature. This should be a feature of this aging, but extremely useful component. |
Hi @AllenFang I'm a big fan of your react-bootstrap-table(s). My current project is using your original react-bootstrap-table, but i'm trying to migrate to your react-bootstrap-table-next because my customer wants that autoSelectText option. But my current table has 2 header rows, the first spanning multiple columns. And it looks like the new table structure doesn't handle that since datafield is required, and the column definition is missing the row & colspan attributes. Is there any plans to migrate this functionality or do you know of a way to insert an extra header?

Thank you!
The text was updated successfully, but these errors were encountered: