Hi,
I’m not yet really sure what you want to achieve.
Can you maybe post a link to the page with table, so that I can get an idea on what you want to do?
Regards,
Tobias
Sure…
http://www.soulstones.dk/?p=270
Its the “Final Standing” table.
column 0 should never change it should always be ASC.
And as default the table should be storting after column 6 as DESC.
As it is now, the table is sorting after column 6 DESC, but that makes column 0 wrong… It should say 1,2,3,4 etc.
I hope you can see what i mean?
Hi,
ok, thanks for the link.
So you actually want to fix column 0, so that it never changes, while the rest of the table can change depending on how someone sorts it. And by default, you want to sort DESC on column 6 (which you already do with the “Custom Command” that you have added).
Now, I’m not really sure if this is possible with the DataTables library, but if it is, you are likely looking for the “bSortable” parameter, see http://datatables.net/usage/columns#bSortable
To use that in your table, just extend the current “Custom Commands” to
"aaSorting": [[6,'desc']], "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]
Regards,
Tobias
it does not look like its working 🙁
Hi,
that’s too bad 🙁 Unfortunately, I don’t know a solution then 🙁 I suggest that you check out the DataTables website at http://www.datatables.net and maybe ask in their forums on whether such a feature is actually available or possible.
Best wishes,
Tobias
I will do that…
Thanks for your help.