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

Displaying Group row as detail row in grid

1 Answer 175 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mayuri
Top achievements
Rank 1
Mayuri asked on 01 Oct 2015, 10:29 AM

Hi,

I have a kendo grid displaying company data with parent-child relationship(parent company with multiple child companies). In grid I am grouping data on parentcompanyid column. But because of this grouping the grid does not show parentcompany data in grid except the parentcompanycode as group label. I want to display parent company data as a child row along with other child companies and it has to be displayed at the end of group list i.e. child companies first and then parent company. How can I achieve this?

Example:

Company                Loc           EmpCount

ABC - Parent company

PQR (child)             X                   30

XYZ (child)              X                   20

ABC(parent rec)      X                   10

                                       Total       60

Here though ABC is a parent company and group data but still it is shown as a separate entity in child list.

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 05 Oct 2015, 07:00 AM

Hello Mayuri,

 

There must be a field in the data on which to group. In the following example this is the `ParentCompany` field. Your data must have shape similar to the example bellow in order to achieve this scenario.

 

http://dojo.telerik.com/orOya

 

Regards,
Nikolay Rusev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Mayuri
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or