I don't think you understood me. I know that I can sort on a column by at page load. However, I want the initial table display to NOT sort on any column, but show the rows in the order that they exist in the CSV file. At this time, when I do not specify a default sort column, it appears to sort the data on the first column anyway.
Just change the numbers in aoColumns[0] by your needs. Number 0 is first column, 1 is second and so on... Let me know if you manage to achieve what you wanted.
I'm sorry but you STILL don't appear to understand my issue. Although I want column sort enabled, I want the initial table display to show the rows in the same order they are in the CSV file, which is not sorted on any column. The only way I can get the initial display correct is to disable column sort. I need to have BOTH column sort enabled, AND to show the initial table in the natural CSV order. Should that not be possible???
Sorry for misunderstanding. If you are talking about this table -Link my suggestion is that in CSV file you make another column ( for example ID) and type the numbers in it. Next step is that in Optional column setup for that new column select ascending/descending and uncheck the visible option for that column. In that case the table on page load, sort order will be for that new column ID which will be hidden. But you will need to type ID's for your current table.
If you have some issues please send me that file so I can help you out.
Need to enable sorting but NOT have it automatically sort on the first column.
Hi Alexia Prat,
Thank you for your purchase.
In Optional column settings select ascending/descending option for column that you want your table to be sorted on page load.
Kind Regards,
Miloš Jovanović
[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
I don't think you understood me. I know that I can sort on a column by at page load. However, I want the initial table display to NOT sort on any column, but show the rows in the order that they exist in the CSV file. At this time, when I do not specify a default sort column, it appears to sort the data on the first column anyway.
How do I suppress that?
Alexia
Hi Alexia Prat,
You can add this code on page where your table is located:
Just change the numbers in aoColumns[0] by your needs. Number 0 is first column, 1 is second and so on...
Let me know if you manage to achieve what you wanted.
Kind Regards,
Miloš Jovanović
[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
I'm sorry but you STILL don't appear to understand my issue. Although I want column sort enabled, I want the initial table display to show the rows in the same order they are in the CSV file, which is not sorted on any column. The only way I can get the initial display correct is to disable column sort. I need to have BOTH column sort enabled, AND to show the initial table in the natural CSV order. Should that not be possible???
Alexia
Hi Alexia Prat,
Sorry for misunderstanding.
If you are talking about this table -Link my suggestion is that in CSV file you make another column ( for example ID) and type the numbers in it.
Next step is that in Optional column setup for that new column select ascending/descending and uncheck the visible option for that column. In that case the table on page load, sort order will be for that new column ID which will be hidden. But you will need to type ID's for your current table.
If you have some issues please send me that file so I can help you out.
Kind Regards,
Miloš Jovanović
[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