orderData and specifying columns with class names rather than column indices
orderData and specifying columns with class names rather than column indices
I'm trying to use orderData to sort via a hidden column. This works inside my columnDefs:
{ "targets": ['cleanup'],
"visible": true,
"searchable": true,
"orderData": [ 12 ]
},
However, I'd rather choose the sorting column based on its classname, such as
{
"targets": ['cleanup'],
"visible": true,
"searchable": true,
"orderData": [ 'cleanup-timestamp' ]
},
However, doing so gives me an Uncaught TypeError: Cannot read property 'sType' of undefined
Is it possible to indicate which column I'd like to use as sorting criteria given its th's classname, rather than column index?
This discussion has been closed.