This is a migrated thread and some comments may be shown as answers.

[Solved] Expandable MVC Grid not working

0 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 12 Oct 2010, 04:30 PM
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();
                    %>
Tags
Grid
Asked by
John
Top achievements
Rank 1
Share this question
or