The asp-net mvc example shows how to load a spreadsheet and serialize it.
public
class
HomeController : Controller
{
public
ActionResult Read()
{
var path = Server.MapPath(
"~/App_Data/path/to/document.xlsx"
);
var workbook = Telerik.Web.Spreadsheet.Workbook.Load(path);
//Uses Newtonsoft.Json internally to serialize fields correctly.
return
Content(workbook.ToJson(), Telerik.Web.Spreadsheet.MimeTypes.JSON);
}
}
Question:
What would the razor code look like to render the serialized workbook sent as the view model ?