Issue with responsivPriority

Issue with responsivPriority

bonaventurebonaventure Posts: 15Questions: 7Answers: 0

Hi,

sorry for still being on 1.11.4 / BS4 with responsive e.a. :-p
But, for today, I would not wan to upgrade because this means a full regression test of the UI.
And I want to fix this bug this week :o)

I have found some issues:

1) responsivePriority (used in columns) seems to be ignored
especially the first field being removed when downsizing the browser is only sometimes the last,
whatever I put into responsivePriority (1,2,3,3,3,3,3) or (1,200,300,300,...) or (1,2,3,4,5,6,7).
I cannot see any cause to this in my config.
Had there been an issue with this in 1.11.* ?

Answers

  • kthorngrenkthorngren Posts: 21,325Questions: 26Answers: 4,949

    This is from the columns.responsivePriority docs:

    For example a column with a priority of 2 will be removed from the display before a column with priority 1, regardless of the order that they appear in the table.

    You have responsivePriority (1,2,3,3,3,3,3) which means the columns with priority 3 will be removed first. Since Datatables starts removing from the right the last column will be removed first.

    If this doesn't help then please provide a test case replicating the issue so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • bonaventurebonaventure Posts: 15Questions: 7Answers: 0
    edited August 19

    Problem is, that not the last is removed first but the last but one.
    Totally independent which priority I give them.

    I'll try to make a test case, but this is going to need some time ...

Sign In or Register to comment.