Hi, I just started with radzen and I wanna make a nested tree. How do I do this?
This is my Array of obj
Arr= [
{Id:1,
ParentId:0,
DocumentName:First Document
},
{Id:4,
ParentId:1,
DocumentName:Child 1
}
];
Thank you!
Tank you for your response, I tried, but it's not working (wanna match Id === ParentId), olso tied load loadash but when I recompile the application it removes the loadash. Thanks!
The example shows how to:
- Access current node data using
${event.data}
- Access current node level using
${event.level}
- Set node children using
${event.children}
For this particular example we've used non homogeneous data (each level have different properties) and you can find example with homogeneous data (self-referencing) in this thread:
Again, these are just examples that can be adapted to your scenario and data.
Thank you! I will try