Responsive & RowGroup.startRender are not working together

Responsive & RowGroup.startRender are not working together

ikus060ikus060 Posts: 3Questions: 1Answers: 0

Link to test case: https://live.datatables.net/tepayaki/1/edit

When using a RowGroup.startRender returning multiple <tr>, the colspan ajustment are not computed correctly as it assum a single <tr> that span on all rows. Which is incorect.

While I expect a result similar to the following:

I think this problem as been reported at least once here: https://datatables.net/forums/discussion/79473

The issue seams located in _adjustColspan().

Replies

  • allanallan Posts: 65,056Questions: 1Answers: 10,772 Site admin

    Hi,

    I've committed a change that sort of fixes this - it does from the RowGroup aspect at least, but not from the Responsive one: https://live.datatables.net/tepayaki/2/edit .

    The problem with Responsive here is that it doesn't control the nodes in the RowGrouping row, and doesn't attempt to change them at all.

    I think you might need to listen for responsive-resize and adjust / redraw the row as needed. Possibly RowGroup should trigger another call to startRender when that event happens - I'm not sure what the correct fix is to be honest!

    Allan

Sign In or Register to comment.