RowGroup and ScrollY
RowGroup and ScrollY
Wooly65
Posts: 86Questions: 25Answers: 1
I decided to use RowGroup for the first time and am have issues with column sizing when I use ScrollY.
Using BootStrap5 showing in Chrome.
I have commented out ScrollY, so uncomment it to see the issue.
https://live.datatables.net/kanecaro/1/edit
The last comment in the discussion below also comments about ScrollY
https://datatables.net/forums/discussion/comment/230653/#Comment_230653
Answers
Unfortunately yes. There is something "weird" in the browsers when the first row in the table body has a
colspan
cell. I do not yet have a fix for this as I don't yet fully understand what is happening in the browsers, nor how to counteract it.Allan
I have the exact same problem.
I used the solution from this post and it has worked for me.
https://stackoverflow.com/questions/11607858/jquery-datatable-column-headers-width-issue-with-vertical-scroll
I there, I have the same issue. In the past I did like the solution posted from samsa17, remove the
scrollX
andscrollY
completely from the config object (I don't know why, maybe it is browser caching stuff, but it changes the generated dom of the table even though I set them to false), and wrap the table tag in a div with scrolling.If you manage to find a solution, I will be grateful if you can share it with us Allan
Thanks!
best regards
davide
ps. I am too using bootstrap5 and chrome 128
It should be working with all the latest versions. If it isn't for you, can you link to a test case showing the issue so I can debug it please?
Thanks,
Allan
I noticed now I am on datatable v2.0.5 , I will update dt in a couple weeks.
I am confident on what you say, should the issue be there again I will inform you !
as always, thanks Allan!
Hi!
I have the similat problem with header width using RowGroup and ScrollY simultaneously. The difference is that i need groups to be collapsed at start.
Using last datatables version. Check please my example:
https://live.datatables.net/kanecaro/11/edit
RowGroup does not support collapsible groups at this time. It is something I hope to add in future.
Allan