Good day! I’m working with a jqxDataTable and am trying to export my data to a local variable, similar to what I can do with the jqxGrid. The idea is to not send data to an external URL in order to export my data and not develop my own save-file.php document.
With the jqxGrid, I am able to do so with the following:
var exportInfo = $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xls’, null, true);
var data = new Blob([exportInfo], {type: ‘text/plain’});
var link = document.getElementById(
‘downloadlink’);
var f = window.URL.createObjectURL(
data);
link.href = f;
Thanks,
Kurt