• Resolved danniee

    (@danniee)


    Hello again,

    Still very much in love with your work!

    Is it possible to remove the sorting function on a specific column? Do you also know if there is a way to add a numeric value to an image to make it sortable? For example I have gif stars as score but it cannot be sorted because it’s only an image. Thank you for your patience

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble. Also, please excuse the long wait for a reply. I just returned from holidays last night and was not able to reply earlier. Thanks for your understanding.

    Removing the sort function from individual columns is of course possible. For that, please try adding something like this to the “Custom Commands” textfield on the table’s “Edit” screen:

    
    "columnDefs": [ { "orderable": false, "targets": [ 1, 4 ] } ]
    

    This would turn off sorting for the second and fifth columns, as counting the columns starts with 0 for this code.

    Sorting images is also possible, via hidden columns. Please see https://www.ads-software.com/support/topic/sorting-table-by-image/ for an example.

    Regards,
    Tobias

    Thanks, Tobias. Just what I needed.

    Ted

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove sorting on specific columns’ is closed to new replies.