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

Hierarchy Problems and Server bind

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy Macourek
Top achievements
Rank 1
Andy Macourek asked on 08 May 2014, 07:50 PM
I am trying to use hierarchy with the data that is in the model.  However, when the grid loads, the first column is not the expand/collapse, it is the first data bound column and all other columns are shifted left.  If I exclude the client template, it works fine, but as soon as I add the template call, it breaks.
‚Äč
@(Html.Kendo().Grid<SHDIncident>(Model.SHDActive)
               .Name("shdActive")
               .Columns(columns =>
               {
                   columns.Bound(e => e.SHDEntryId);
                   columns.Bound(e => e.AffectedWorkload);
                   columns.Bound(e => e.Severity);
                   columns.Bound(e => e.Status);
                   columns.Bound(e => e.AffectedDataCenters);
                   columns.Bound(e => e.StartTime);
                   columns.Bound(e => e.LastUpdatedTime);
               })
               .ClientDetailTemplateId("shddetailTemplate")
           )

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 09 May 2014, 06:07 AM
Hello Andy,

It seems that you are using Server Binding for the Grid. In this case ClientDetailTemplateId is not applicable. The following article explains how to implement hierarchy with server bound grid: Server Detail Template.

Regards,
Nikolay Rusev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Andy Macourek
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or