Record gets in database with response HTTP 200, but getting error in browser. (PFA attachment)
@(Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.HtmlAttributes(new { style = "width:100%" })
.Toolbar(false)
.Sheetsbar(false)
.Sheets(sheets =>
{
sheets.Add()
.Name("Exceptions")
.DataSource<
C3Connect.C3i.Models.WFM.ExceptionsSpreadsheetVM
>(ds => ds
.Ajax()
.Batch(true)
.Read(read => read.Action("SpreadsheetRead", "Exceptions").Data("spreadsheet_additional_data"))
.Update("SpreadsheetUpdate", "Exceptions")
.Create("SpreadsheetCreate", "Exceptions")
.Destroy("SpreadsheetDelete", "Exceptions")
.Events(e => e.Change("spreadsheet_onChange").Error("spreadsheet_error"))
.Model(m =>
{
m.Id(p => p.ExceptionID);
})
)
.Columns(columns =>
{
columns.Add().Width(100);
columns.Add().Width(100);
columns.Add().Width(100);
columns.Add().Width(100);
columns.Add().Width(100);
columns.Add().Width(100);
})
.Rows(rows =>
{
rows.Add().Height(30).Cells(cells =>
{
cells.Add()
.Bold(true)
.Background("#9c27b0")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#9c27b0")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#9c27b0")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#9c27b0")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white");
cells.Add()
.Bold(true)
.Background("#9c27b0")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white")
.Format("m/d/yyyy h:mm");
cells.Add()
.Bold(true)
.Background("#9c27b0")
.TextAlign(SpreadsheetTextAlign.Center)
.Color("white")
.Format("m/d/yyyy h:mm");
});
});
})
)