I have json data like this.
[
{
"Name": "Alex",
"Roll": 1,
"collection": [
{
"Name": "Alex",
"Roll": 1,
"Class": 1,
"stk": "Val1",
"Marks": [
{
"Maths": 100,
"Science": 200
}
],
"Weight": 50
},
{
"Name": "Alex",
"Roll": 1,
"Class": 1,
"stk": "Val2",
"Marks": [
{
"Maths": 100,
"Science": 200
}
],
"Weight": 60
}
]
},
{
"Name": "Brat",
"Roll": 2,
"collection": [
{
"Name": "Brat",
"Roll": 2,
"Class": 2,
"stk": "Val1",
"Marks": [
{
"English": 100,
"History": 200
}
],
"Weight": 40
},
{
"Name": "Brat",
"Roll": 2,
"Class": 2,
"stk": "Val1",
"Marks": [
{
"English": 100,
"History": 200
}
],
"Weight": 30
}
]
},
{
"Name": "Cean",
"Roll": 3,
"collection": [
{
"Name": "Cean",
"Roll": 3,
"Class": 1,
"stk": "Val1 ",
"Marks": [
{
"Physic": 100,
}
],
"Weight": 40
}
]
}
]
I am preparing the nested grid like this from here. Kitch SInk
IN my case requirement is but different. As we can see in url the column is already defined here, but In my case upper column is predefind but the column in the nested grid is varry.
If you look into the data the marks which is in collection array have the same subject of one array and different then the previous array of collection. So marks is dynamic. Any way how to create the dynamic column ofthe nested grid.
My Column for first record is : stk, Maths and Science
My Column for first record is : stk, English and History
My Column for first record is : stk, Physics
Any light how to achive this.