Sorting columns only at icon click
Sorting columns only at icon click
Basically, i want to allow columns to be sorted/ordered BUT, unbinding the event to the whole header ().
See on http://www.multizap.com.br/datatables/ why i want this: resizing a column sorts it and also hiding it (instead of keep the already defined sorting order).
I already saw that theres a listener for individual columns, but i use DT dinamically, just receiving queries and building table with various quantities of columns. Also, i don't want to hack the code :/ ...
I would like to just print the icon span on each th content and bind the sort to it...
Thanks in advance.
See on http://www.multizap.com.br/datatables/ why i want this: resizing a column sorts it and also hiding it (instead of keep the already defined sorting order).
I already saw that theres a listener for individual columns, but i use DT dinamically, just receiving queries and building table with various quantities of columns. Also, i don't want to hack the code :/ ...
I would like to just print the icon span on each th content and bind the sort to it...
Thanks in advance.
This discussion has been closed.