Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter thomashansen1337

    (@thomashansen1337)

    Hi Tobias,

    Thank you for your quick reply!

    I am not very JS-savvy, but I managed to add a custom command like this:

    "columnDefs": [ { "orderData": [ 1,3,5,8 ], "targets": [ 2,4,6,9 ] }, { "visible": false, "targets": [ 1,3,5,8 ] } ]

    As it appears, I am trying to assign 4 hidden columns to be used as the sorting data for the visible columns, unfortunately it doesn’t seem to work. I guess my command is wrong 🙂 Any advice is greatly appreciated.

    I am going to buy the Pro-plan for 3 sites if this works, as I need the responsive layouts too.

    Thanks again!

    EDIT: Figured it out after a bit of digging through Google. This is the proper command:

    columnDefs: [ 
    { orderData: [ 1 ], targets: [ 2 ] },
    { orderData: [ 3 ], targets: [ 4 ] },
    { orderData: [ 5 ], targets: [ 6 ] },
    { orderData: [ 8 ], targets: [ 9 ] },
    { visible: false, targets: [ 1,3,5,8 ] }, ]
    • This reply was modified 1 year, 9 months ago by thomashansen1337. Reason: Solved
Viewing 1 replies (of 1 total)