More than 3000 items exporting to excel issue in chrome

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

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/vnd.ms-excel' }); window.navigator.msSaveBlob(blob, filename + '.xls'); } else { var a = document.createElement('a'); document.body.appendChild(a); a.href = 'data:application/vnd.ms-excel;charset=utf-8,%EF%BB%BF' + encodeURIComponent(element); a.download = filename + ".xls"; a.click(); } }

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