column visibility and column width

column visibility and column width

testowniktestownik Posts: 21Questions: 10Answers: 0

I'm using this parameter:

"columnDefs": [ {"targets": 0, "width": "200"}, {"targets": 1, "width": "80"}, {"targets": 2, "searchable": false}, {"targets": [3, 4, 5, 6], "searchable": false, "visible": false}],

first 2 columns are always visible, and visibility of third is switched by buttons

everything seems to work with the exception of width parameter on ios safari. when I change page, column widths chage randomly.

I also have these lines in head section:

"autoWidth": false,

and in general

<meta name="viewport" content="800", initial-scale=1.0>

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @testownik ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.