• Resolved mikeprince

    (@mikeprince)


    I am using row grouping and buttons for column visibility. I have some columns at the end of the table hidden initially, until a colvis button shows them.

    Unfortunately with row grouping this does not work properly. Whilst the column is added fine, the colspan of the grouped rows is not increased, and hence those rows have one less column in. This mucks up the formatting. The colspan of grouped rows should get incremented when a column is made visible, and decremented when a column is hidden.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I see what you mean, but unfortunately, I don’t know a solution for how this could be achieved ??
    The only suggestion that I have right now would be to display that column from the beginning.

    Regards,
    Tobias

    Thread Starter mikeprince

    (@mikeprince)

    Is this a bug with datatables itself? And is there somewhere that can be reported?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, it’s a missing feature in the JavaScript code for the RowGrouping. That’s something that I came up with some years ago, based on some code snippets that I had found.

    One idea might be to replace that with a newer and “official” DataTables Extension, https://datatables.net/extensions/rowgroup/
    However, I haven’t yet found the time to make this usable as a TablePress Extension.

    Regards,
    Tobias

    Thread Starter mikeprince

    (@mikeprince)

    Ah, ok. Hope you can find time, because then you could probably address https://www.ads-software.com/support/topic/row-grouping-and-column-counter/ as well ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    it’s definitely planned, but I can’t make promises. With the current situation, things are rather busy already. ??

    That other issue might also be fixed with that method, at least I can’t see why not, on first glance.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Row grouping with colvis buttons does not update colspan’ is closed to new replies.