colReorder is undefined when trying to transpose index
colReorder is undefined when trying to transpose index
We previously weren't using column reordering and in our fnDrawCallBack method we had:
function () { $('#myTable').find('tr').dblclick(function (e) {var table= $('#myTable').dataTable(); var position = table.fnGetPosition(this); var id = table.fnGetData(position)[13];...
Knowing that index 13 had the id that we needed.
Now with column reordering in place we want to get the new index for the id column but are running into issues using the colReorder.transpose method:
function () { $('#myTable').find('tr').dblclick(function (e) {var table= $('#myTable').dataTable(); var id = table.colReorder.transpose(13);...
Uncaught TypeError: Cannot read property 'transpose' of undefined
Looking into this I can't see any table.colReorder property. Not sure where to go from here.. Any ideas?