I have this grid
@(Html.Kendo().Grid<
AccidentBook.Models.Accident
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.AccidentDate );
columns.Bound(c => c.Description);
})
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(p => p.ID))
.Read(read => read.Action("Accidents_Read", "Accident"))
)
)
Here we can see Accidents_Read
public
ActionResult Accidents_Read([DataSourceRequest]DataSourceRequest request)
{
IQueryable<Accident> accidents = db.Accidents;
DataSourceResult result = accidents.ToDataSourceResult(request, accident =>
new
{
ID = accident.ID,
AccidentDate = accident.AccidentDate,
Descripion = accident.Description,
});
return
Json(result);
}
The issue I am having is that the description column is that the Description column isn't being displayed, AccidentDate is displayed ok. I can see using firebug that the data is being returned ok (attached image). Does anyone have any ideas as to what might be the problem?