Hi, I'm trying to create a custom popup editor for my grid, however, the drop downs are not being populated or at least won't open at all. I'm stumped. The controller method does get hit and I see 3 values but the drop downs down open. When I first click on them I see a quick activity indicator appear but that's it.
Popup editor code
@(Html.Kendo().DropDownList()
.Name("PressureGroupNm")
.DataTextField("PressureGroupNm")
.DataValueField("PressureGroupNm")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetPressureTypeGroups_ForDropDown", "Group");
});
})
.HtmlAttributes(new { style = "width: 60%" })
)
@Html.ValidationMessageFor(model => model.PressureGroupNm)
Controller code
public ActionResult GetPressureTypeGroups_ForDropDown()
{
return Json(GetGroups(), JsonRequestBehavior.AllowGet);
}
private IEnumerable<
PressureTypeGroup
> GetGroups()
{
return db.PressureTypeGroups.Select(pg => new PressureTypeGroup
{
PressureGroupNm = pg.PressureGroupNm,
PressureTypeGroupTblId = pg.PressureTypeGroupTblId
});
}