When I add an MVC Spreadsheet using this very simple code (in a View page of an MVC app)
@{
ViewBag.Title =
"Index"
;
}
<h2>Index</h2>
@{
var path = Server.MapPath(
"~/Content/CSVFiles/SUNRISE06142016.csv"
);
var workbook = Telerik.Web.Spreadsheet.Workbook.Load(path);
}
<div style=
"background-color: coral; width: 500px; height: 500px; border-style: double"
>
@(Html.Kendo().Spreadsheet()
.Name(
"spreadsheet"
)
.BindTo(workbook))
</div>
The result page is not a spreadsheet, to be sure... I've attached a screen shot of the page without the spread sheet, and then with the spreadsheet. What gives here?
Basically what I'm wanting to do is to upload a CSV file, of any format and load it into a spreadsheet component. Ultimately this will be for users to map their CSV uploads to an object for parsing. Each and every CSV file will most likely be different.