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

Expand Column not showing (MVC)

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 01 May 2014, 01:42 PM
Trying to create a simple expand for details grid and the first column is not showing (the expand icon)

This is what I have on the view:

  <script id="upc_detail" type="text/x-kendo-template">
            @(Html.Kendo().Grid<PeriodicCheckWithLineage>()
                      .Name("upcgrid_#=Test_ID#")
                      .Columns(columns =>
                      {
                          columns.Bound(o => o.Date_Time).Title("Date/Time");
                          columns.Bound(o => o.IsND);
                          columns.Bound(o => o.IsSigShift);
                          columns.Bound(o => o.IsSigBias);
                      })
                      .DataSource(dataSource => dataSource
                          .Ajax()
                          .Read(read => read.Action("PeriodicDetail", "Review", new { TestID = "#=Test_ID#" }))
                      )
                      .ToClientTemplate())
        
        </script>

@(Html.Kendo().Grid<
TestLineage>(upc_test)
                    .Name("upcgrid")
                    .Columns(columns =>
                    {
                        columns.Bound(e => e.Lab_Name);
                        columns.Bound(e => e.Instrument_Name);
                        columns.Bound(e => e.Analyte_Name);
                        columns.Bound(e => e.Test_Name);
                    })
                   .ClientDetailTemplateId("upc_detail")
                    )

Chrome and IE show no JS errors. I have two other grids (no details or heirarchy) and they look fine. Not sure what I am doing wrong here.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 May 2014, 07:29 AM
Hello Kevin,

Your parent grid seems to be server-bound. You should use the DetailTemplate option in this case. This help topic shows how.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Kevin
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or