Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the question.

    Yes, you can turn off sorting on certain columns with a “Custom Command” for the DataTables JavaScript library (which TablePress uses for the sorting feature).

    For example, paste

    "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0, 1, 4 ] } ]

    into the “Custom Commands” textfield on the table’s “Edit” screen.

    This would turn off sorting for columns 1, 2, and 5. (The counting of the numbers in the code starts with 0.)

    Regards,
    Tobias

    Thread Starter etrnluv

    (@etrnluv)

    WOW!
    Thanks for the super fast response…it is 4am here…LOL I appreciate your help!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    Thank you so much I was looking for the same….

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    cool! Great to hear that this was helpful for you as well!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sort feature on just a few columns, not all?’ is closed to new replies.