This question is locked. New answers and comments are not allowed.
Hi, im having some trouble with using the expandable grid with an MVC Project. The code compiles and i get a list that i can select elements, but nothing expands.
Html.Telerik().Grid(Model.Manifests)
.Name("ManifestsGrid")
.DataKeys(keys => keys.Add(p => p.Id))
.DetailView(detailView => detailView.ClientTemplate(
"<fieldset>" +
"<legend>Waste for <#= ManifestId #></legend>" +
"<ul style='padding:0; margin:0; list-style:none'>" +
"<li> Details not implemented </li>" +
"</ul>" +
"</fieldset>"
))
.Columns(columns =>
{
columns.Bound(o => o.Id)
.Width(50)
.Title("Id");
columns.Template(o => Response.Write(Html.ActionLink(o.ManifestId.ToString(), "AddEditGen", new { addoredit = o.Id})))
.Width(150)
.Title("Manifest #:");
columns.Bound(o => o.Generator.CompanyName)
.Width(150)
.Title("Company:");
columns.Bound(o => o.GeneratorFieldOffice.FacilityName)
.Width(150)
.Title("Field Office:");
columns.Bound(o => o.GeneratorFacility.FacilityName)
.Width(150)
.Title("Facility:");
})
.Pageable(paging => paging.PageSize(10))
.Selectable()
.Scrollable()
.Render();
%>
Html.Telerik().Grid(Model.Manifests)
.Name("ManifestsGrid")
.DataKeys(keys => keys.Add(p => p.Id))
.DetailView(detailView => detailView.ClientTemplate(
"<fieldset>" +
"<legend>Waste for <#= ManifestId #></legend>" +
"<ul style='padding:0; margin:0; list-style:none'>" +
"<li> Details not implemented </li>" +
"</ul>" +
"</fieldset>"
))
.Columns(columns =>
{
columns.Bound(o => o.Id)
.Width(50)
.Title("Id");
columns.Template(o => Response.Write(Html.ActionLink(o.ManifestId.ToString(), "AddEditGen", new { addoredit = o.Id})))
.Width(150)
.Title("Manifest #:");
columns.Bound(o => o.Generator.CompanyName)
.Width(150)
.Title("Company:");
columns.Bound(o => o.GeneratorFieldOffice.FacilityName)
.Width(150)
.Title("Field Office:");
columns.Bound(o => o.GeneratorFacility.FacilityName)
.Width(150)
.Title("Facility:");
})
.Pageable(paging => paging.PageSize(10))
.Selectable()
.Scrollable()
.Render();
%>