Multi page grid to csv or excel

Hi Experts
I am new user of DHTMLX grid and trying to export my grid into CSV or excel but landing into a problem, details:

serializeToCSV() method works perfectly when there is only one page in the grid, but when I data say 100 elements in each page with total of 20 pages… it serialize only the page I am on… My goal is to export/serialize the complete grid i.e. all 20 pages…

Can someone please let me know how I can achieve this in JS or Java ?

Thanks In Advance!!

-UL

Please, try to use:

mygrid.forEachRow(function(id){ mygrid.render_row(mygrid.getRowIndex(id)); }); mygrid.serializeToCSV();