Hi, I build the columns option dynamically in a loop
var columnsObj;
for (i=0; i<columnsToDisplay.length; i+=1) {
columnObj = {
"data": columnsToDisplay[i], //CAN HAVE DOTS e.g. "column.a.b"
"title": columnsToDisplay[i]
};
}
Unfortunately these column names often have dots. Datatables by design thinks these are nested objects and gives an unknown parameter requested error. How can I turn of that behaviour or bypass it? I tried this thread but passing my variable into the column does not work. Any suggestions?
Thanks