@(Html.Kendo().Grid<
Zeus.Models.QuestionGroup
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.Id);
columns.Bound(p => p.Name);
})
.HtmlAttributes(new { style = "margin:10px;height:230px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Answers2", "Survey"))
)
)
Above is some MVC code. I've tested this code using local binding and it works, but when I call it remotely and bind it, it doesn't. However, it does trace into the following function:
public ActionResult Answers2()
{
/* SNIP */
Models.Survey survey = modelSurvey.GetFull();
/* SNIP */
return Json(survey.QuestionGroups);
}
And I see the trace using Fiddler, and I can debug it, but when the Json object is returned, nothing shows up in the grid. There is data there, and Im getting no javascript errors. Any idea what I'm missing?