Get Column Title from Column and Column Order Index

Get Column Title from Column and Column Order Index

nealsunealsu Posts: 4Questions: 0Answers: 0
edited September 2013 in General
We have an existing server side table that we are converting to DataTables. The table currently has its own state saving mechanism that ties in to the user login profile.

For this reason I was trying to find a way to do the following:
1) Given a column index, taking into consideration hidden columns, retrieve the column title in sTitle or at least the text in the table header column.
2) Retrieve the order index if ColReorder is being used so this can be saved separately to DataTables state saving. (bStateSave).

Note: the other problem with using bStateSave is that if the underlying HTML changes then the state reloading fails and the datatables just doesn't load. Is there a way to intercept this and load defaults / skip the state loading?
This discussion has been closed.