PDA

View Full Version : Nested Grid



Bleak
8 Mar 2014, 5:34 AM
If I have a data structure such as;



{
data: [
{
category: 'cars',
categoryId: 1,
models : [
{
name: 'ford',
rating: 1
},
{
name :'honda',
rating: 2
}
]
}
]
}



Would it be possible to show it in a grid with the columns being

CATEGORY NAME RATINGCars Ford 1
Cars Honda 2


Essentially, I would like each of the car records to also display the name of the category they are associated with?

scottmartin
8 Mar 2014, 9:15 AM
Have a look at this UX. There are examples that display a nested grid:
https://github.com/mitchellsimoens/Ux.grid.plugin.AssociationRowExpander