Possible to disable sorting of multiple columns?
Possible to disable sorting of multiple columns?
Hi Allan,
Apologies if this is already listed in your extensive and thorough documentation, but is it possible to only allow sorting on a single column at a time? I have a table with AJAX processing enabled, and I'd like to simplify the server-side logic by disallowing the multiple-column sorting. Thanks!
- Matt Buck
Apologies if this is already listed in your extensive and thorough documentation, but is it possible to only allow sorting on a single column at a time? I have a table with AJAX processing enabled, and I'd like to simplify the server-side logic by disallowing the multiple-column sorting. Thanks!
- Matt Buck
This discussion has been closed.
Replies
1. In the DataTables code look for the comment "/* If the shift key is pressed then we are multipe column sorting */" and remove that block.
2. You could unbind the default event listener and attach your own which will always override e.shift to be false.
Allan
Regards,
Allan