RowGroup and ScrollY

RowGroup and ScrollY

Wooly65Wooly65 Posts: 86Questions: 25Answers: 1
edited May 18 in Free community support

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

  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin

    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

  • samsa17samsa17 Posts: 2Questions: 0Answers: 0
    edited June 14

    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

  • Red SniperRed Sniper Posts: 52Questions: 11Answers: 0
    edited September 16

    I there, I have the same issue. In the past I did like the solution posted from samsa17, remove the scrollX and scrollY 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 :smiley:

    Thanks!
    best regards
    davide

    ps. I am too using bootstrap5 and chrome 128

  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin

    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

  • Red SniperRed Sniper Posts: 52Questions: 11Answers: 0

    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!

  • DiemonDiemon Posts: 1Questions: 0Answers: 0

    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

  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin

    RowGroup does not support collapsible groups at this time. It is something I hope to add in future.

    Allan

Sign In or Register to comment.