?ColumnFilterWidgets: Numeric sorting via options?

?ColumnFilterWidgets: Numeric sorting via options?

stl99stl99 Posts: 11Questions: 4Answers: 0

Hi,

I'm using DataTables and ColumnFilterWidgets via the popular WordPress plugin TablePress. I need numeric sorting for the values in a specific filter dropdown which needs be set via the regular DataTables functions.

The WordPress plugin supports adding customizations such as "columnDefs": [ { "orderable": false, "targets": [ 4, 7, 8, 9, 10 ] } ]. Unfortunately, I'm struggling to find a solution to list the dropdown values numerically. Any advice would be highly appreciated.

Best,
Thomas

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

    You'd probably need to ask the ColumnFilterWidgets author. It is not a plug-in that is written or supported by us.

    Allan

  • stl99stl99 Posts: 11Questions: 4Answers: 0

    Thanks, didn't know that! Is there something similar "official" that supports dropdown filters?

    Cheers,
    Thomas

  • kthorngrenkthorngren Posts: 21,261Questions: 26Answers: 4,934

    Not sure what CustomFilterWidgets does but there is this example. There is also another third party plugin called YADCF.

    Kevin

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Answer ✓

    You could consider our SearchBuilder extension.

    Allan

Sign In or Register to comment.