?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: 57,730Questions: 1Answers: 9,203 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: 17,754Questions: 25Answers: 4,215

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

    Kevin

  • allanallan Posts: 57,730Questions: 1Answers: 9,203 Site admin
    Answer ✓

    You could consider our SearchBuilder extension.

    Allan

Sign In or Register to comment.