Only one column can be chosen as a default sorting column for the table. So, if you select one column to be a column the table will be sorted by, and you choose the descending fashion, only that column will be sorted like that.
The only way you can sort the table by multiple columns would be if you hold down SHIFT and click on the header of 2 columns.
Thanks for your response but that's not what i'm trying to achieve. What i need is to simply disable the option to sort in ascending order for certain columns, not on load but when the user actually tries to sort manually. I hope i made myself more clear now.
Unfortunately, something like this is not possible. A lot of things would need to be changed in the code of the plugin, or you would have to include some hooks, depending on the table type.
You can sort the table per some column, and then disable sorting for other columns in the table. There's no way to disable only one sorting direction.
Hi, i needed certain columns in a table to be only sortable in descending order, how can i achieve this?
Hello Alonso
Thank you for your purchase.
Only one column can be chosen as a default sorting column for the table. So, if you select one column to be a column the table will be sorted by, and you choose the descending fashion, only that column will be sorted like that.
The only way you can sort the table by multiple columns would be if you hold down SHIFT and click on the header of 2 columns.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello,
Thanks for your response but that's not what i'm trying to achieve. What i need is to simply disable the option to sort in ascending order for certain columns, not on load but when the user actually tries to sort manually. I hope i made myself more clear now.
Thank you.
Hello again.
Unfortunately, something like this is not possible. A lot of things would need to be changed in the code of the plugin, or you would have to include some hooks, depending on the table type.
You can sort the table per some column, and then disable sorting for other columns in the table. There's no way to disable only one sorting direction.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables