Hi,
Is it possible to use below JSON data in Tree or TreeGrid . There is no parent and child id relation(i.e there is no relation through ids). But the child element is listed as sub elements. I want to handle this way upto four layer of sub element in data. I will be getting this in my dataAdapter and give it as input to Tree (or TreeGrid if Tree is not possible). In the below JSON data i am mentioning ‘reports’ as sub element. Please let me know if there is any working example. Thanks !
{
“object”: [
{
“id”: “50”,
“name”: “ABC”,
“displayName”: “ABC name”,
“roleName”: “ABC”,
“reports”: [
{
“id”: “100”,
“name”: “ABC_Text1”,
“displayName”: “ABC_Text1 name”
},
{
“id”: “101”,
“name”: “ABC_Text2”,
“displayName”: “ABC_Text2 name”
}
]
},
{
“id”: “51”,
“name”: “DEF”,
“displayName”: “DEF name”,
“roleName”: “DEF”,
“reports”: [
{
“id”: “200”,
“name”: “DEF_Text1”,
“displayName”: “DEF_Text1 name”
},
{
“id”: “201”,
“name”: “DEF_Text2”,
“displayName”: “DEF_Text2 name”
}
]
}
],
“srw_restricted”: []
}