Hello,
I'm trying to build a parent-child grid system in my Aurelia-base application and I have some questions :
1. Is it possible to define a child grid within a parent grid in a view(html) ? something like this :
<ej-grid id="Parent" ........>
<ej-column ......></ej-column>
<ej-column ......></ej-column>
......
<ej-grid id="Child" .......>
<ej-column ......></ej-column>
.............
</ej-grid>
</ej-grid>
2. My parent grid get a data from a data manager (with web api adaptor) in this format :
[
{
"ParentField_1":"Value_1",
"ParentField_2":"Value_2",
"ChildItems": [{"ChildField_1":ChildValue_1,"ChildField_2":ChildValue_2},{"ChildField_1":ChildValue_1,"ChildField_2":ChildValue_2},{.......}]
}
]
and it has a columns for parent fields only ("ParentField_1" and "ParentField_2"). How
should I setup a data source in my child grid to get only a "ChildItems" array that already loaded by parent grid data manager ?
Any examples will be very helpful.
Thanks !