More than 3000 items exporting to excel issue in chrome

by sunil kammela   Last Updated September 11, 2019 08:24 AM

i am trying to export the records to the excel. Here i have more than 3000 records. When i have below 3000 records it was exporting and saving. But if i have more than 3000 records i am facing the issue. while saving Failed - network error is coming.

Used below code to export the records to excel.

function SaveContents(element, filename) { if (window.Blob && window.navigator.msSaveOrOpenBlob) { var blob = new Blob([element], { type: 'data:application/' }); window.navigator.msSaveBlob(blob, filename + '.xls'); } else { var a = document.createElement('a'); document.body.appendChild(a); a.href = 'data:application/;charset=utf-8,%EF%BB%BF' + encodeURIComponent(element); = filename + ".xls";; } }

Please give a solution to this.

Related Questions

Want to insert image on client side datatables Jquery

Updated November 26, 2018 17:24 PM

how to scroll top or bottom in jquery

Updated December 28, 2016 08:10 AM