This question is locked. New answers and comments are not allowed.
From my main screen, I'm calling RenderAction to render a grid. In this scenario, none of the client events (sorting, refreshing, grouping) is working properly. As soon as I click a column to reorder, the rest of the page and all styling disappears. When I render the grid directly on the page (without the RenderAction) it works fine. I have tried manually registering the grid's javascript files to no avail. What am I missing? Thanks!
Main screen:
Partial View:
Main screen:
@{ Html.RenderAction("List", "Department", new {agencyId = Model.ID}); }
Partial View:
@(Html.Telerik().Grid(Model)
.Name("DepartmentList")
.DataKeys(keys => keys.Add(r => r.ID))
.Columns(columns =>
{
columns.Bound(r => r.ID).Title("Dept ID");
columns.Bound(r => r.Name);
columns.Bound(r => r.Location);
columns.Bound(r => r.Municipality);
columns.Bound(r => r.FirstPhone);
columns.Bound(r => r.ID).Title("View").Format(Html.ActionLink("View", "Detail", "Department", new { id = "{0}" }, null).ToHtmlString()).Encoded(false);
})
.Sortable())