The dataTables plugin is great and thatβs it, but the main rows of the table / table are still present in the DOM and can be traversed just like in any HTML table:
//foo will be a nodeList of all the tr in the table var foo = document.getElementById('#DataGrid').querySelectorAll('tr'); var i = 0, string = '', len = foo.length, row, cells; for (;i<len; ++i) { row = foo[i]; cells = row.children; //td's string += 'however you want to package it for your ajax'; } $.post({url: 'myServerScript', {data: string}, callback});
I was not able to easily find the documentation for the corresponding export plugin, all export examples seem to focus on excel / csv stored on the local disk.
source share