Hi,
One solution might be the use of Tree Node.
There's also similar posts you can use for reference and ideas:
If you search "Tree Node Mendix", you can also find some nice youtube videos explaining how to use this widget.
Let me know if this helps,
João