Pulling my hair out trying to get this to work. The JSON file is being generated, but the grid is empty
Here is the
public ActionResult Excel_Export()
{
return View();
}
public ActionResult Excel_Export_Read([DataSourceRequest]DataSourceRequest request)
{
return Json(Read().ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
}
[HttpPost]
public ActionResult Excel_Export_Save(string contentType, string base64, string fileName)
{
var fileContents = Convert.FromBase64String(base64);
return File(fileContents, contentType, fileName);
}