0
function exportGrid(tableid,filename) { var table= document.getElementById(tableid); $("table tr td:last-child").replaceWith(""); var html = table.outerHTML; var a = document.createElement('a'); a.id = 'ExcelDL'; a.href = 'data:application/vnd.ms-excel,' + escape(html); a.download = filename + ".xls"; document.body.appendChild(a); a.click(); // location.reload(); // document.getElementById('ExcelDL').remove(); } 

i have this function on jSP and i want to export a table with pagination, the trouble is, that function just export de view of the greed

1 Answer 1

1

you can use a js library for that

https://tableexport.v3.travismclarke.com/ for example

I hope this may help you

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.