Issue ordering by column index on a cloumn that is collapsed by responsive plugin

Issue ordering by column index on a cloumn that is collapsed by responsive plugin

mdellanave83mdellanave83 Posts: 33Questions: 3Answers: 0

Hi,
does it should be possible to order by a column index which is actually rendered by the responsive plugin in the collapsable subtable?

in my use case I have a table with 11 columns and the last two starts collapsed due to the responsive plugin.
if I set [[10, 'desc']] as order option during build time, then the first two order columns indicators appears to be on

Replies

  • mdellanave83mdellanave83 Posts: 33Questions: 3Answers: 0

    In the previous version it was possible without the wrong indicators

  • mdellanave83mdellanave83 Posts: 33Questions: 3Answers: 0
    edited March 22

    I was wrong, it seems that the issue is not related to the responsive plugin at all.

    It happens when the columns are more than 10 and the order option index value contains 2 or more char.

    with order [[10, 'desc']] the wrong order arrows appears in the 0 and 1 columns
    with order [[11, 'desc']] the wrong order arrows appears only in the 1 column

    didn't try it, but I imagine that with order [[12, 'desc']] they will appear in the 1 and 2 col

    here the example
    https://codesandbox.io/p/sandbox/datatable-scroll-body-4y4fj4

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951

    This issue is expected to be fixed in the next DT version. See this thread.

    Kevin

Sign In or Register to comment.