if ( typeof oInit.saved_aoColumns != 'undefined' && oInit.saved_aoColumns.length == iLen )in the main initialisation. Removing the second half of that condition and then adding another one inside the loop to check that the array index you want to read, and the column, are available would do what you are looking for.
myloadStateParams = function (oSettings, oData) {
if (oSettings.sDom.indexOf('C') === -1) {
oData.abVisCols = [];
}
};
options = {
'iDisplayLength': 25,
'sPaginationType': 'full_numbers',
'bAutoWidth': false,
'bServerSide': false,
'fnStateLoadParams': myloadStateParams,
};
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.