Skip to content

Commit 24cdd34

Browse files
authored
Merge pull request #3961 from IgniteUI/hhristov/fix-grid-nested-data-binding-sample-rows
fix(grid): add missing employees data rows to the nested grid sample
1 parent 18783d8 commit 24cdd34

1 file changed

Lines changed: 64 additions & 4 deletions

File tree

src/app/data/nested-employee-data.ts

Lines changed: 64 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,91 @@ export const EMPLOYEE_DATA = [
6767
},
6868
{
6969
Age: 49,
70-
Employees: [],
70+
Employees: [
71+
{
72+
Age: 33,
73+
HireDate: new Date(2016, 2, 14),
74+
ID: 20,
75+
Name: "Patricia Hill",
76+
Title: "Accountant"
77+
},
78+
{
79+
Age: 27,
80+
HireDate: new Date(2019, 5, 1),
81+
ID: 21,
82+
Name: "Samuel Green",
83+
Title: "Junior Accountant"
84+
}
85+
],
7186
HireDate: new Date(2014, 1, 22),
7287
ID: 18,
7388
Name: "Victoria Lincoln",
7489
Title: "Senior Accountant"
7590
},
7691
{
7792
Age: 61,
78-
Employees: [],
93+
Employees: [
94+
{
95+
Age: 38,
96+
HireDate: new Date(2013, 7, 22),
97+
ID: 22,
98+
Name: "Kevin Zhang",
99+
Title: "Localization Specialist"
100+
},
101+
{
102+
Age: 30,
103+
HireDate: new Date(2018, 3, 10),
104+
ID: 23,
105+
Name: "Linda Park",
106+
Title: "Translator"
107+
}
108+
],
79109
HireDate: new Date(2010, 1, 1),
80110
ID: 10,
81111
Name: "Yang Wang",
82112
Title: "Localization Developer"
83113
},
84114
{
85115
Age: 35,
86-
Employees: [],
116+
Employees: [
117+
{
118+
Age: 26,
119+
HireDate: new Date(2020, 8, 5),
120+
ID: 24,
121+
Name: "Rachel Adams",
122+
Title: "HR Specialist"
123+
},
124+
{
125+
Age: 31,
126+
HireDate: new Date(2017, 0, 17),
127+
ID: 25,
128+
Name: "Carlos Rivera",
129+
Title: "Recruiter"
130+
}
131+
],
87132
HireDate: new Date(2014, 1, 22),
88133
ID: 35,
89134
Name: "Janine Munoz",
90135
Title: "HR"
91136
},
92137
{
93138
Age: 49,
94-
Employees: [],
139+
Employees: [
140+
{
141+
Age: 34,
142+
HireDate: new Date(2015, 10, 11),
143+
ID: 26,
144+
Name: "Diana Foster",
145+
Title: "Sales Representative"
146+
},
147+
{
148+
Age: 29,
149+
HireDate: new Date(2018, 6, 23),
150+
ID: 27,
151+
Name: "Brian Scott",
152+
Title: "Account Executive"
153+
}
154+
],
95155
HireDate: new Date(2010, 1, 1),
96156
ID: 10,
97157
Name: "Yang Wang",

0 commit comments

Comments
 (0)