Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82286

Ajax object source with dynamic keys and dots.

$
0
0

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


Viewing all articles
Browse latest Browse all 82286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>