Hi there,
I have a grid with an Excel Export option. here's how I decorate the Grid component.
.Excel(excel => excel
.AllPages()
.FileName(@excelFilename)
.Filterable(true)
.ProxyURL(Url.Action("ExcelExportSave", "Search"))
.ForceProxy()
)
And then, in the controller I do this:
[HttpPost]
public ActionResult ExcelExportSave(string contentType, string base64, string fileName)
{
var fileContents = Convert.FromBase64String(base64);
return File(fileContents, contentType, fileName);
}
However, some of the queries return over a million rows. This causes the download to stall.Is there any way to export CSV or maybe just stream the contents down in chunks?