Tree Control HasChildren - displays expand arrow for empty child

I have a tree control which displays from a list with parent IDs; The first level is displayed at startup, and then when expanded, the children are displayed at the next level. I can't seem to get the leaf children to be displayed without an expansion indicator (they have no children)

Seems that the HasChildren is getting called at the wrong level? Could be my linq is wrong.

Would appreciate it if you could look at my code and tell me where I'm going wrong. Thanks

Tried to upload but got "Sorry, new users can not upload attachments."

Please validate my account

You can set HasChildren for each level. Check for example the second tree in our demo:
https://blazor.radzen.com/tree

I'll check it out - can you enable my account to upload files? I have other questions and would like to provide samples. I've purchased a subscription

You can write us also to info@radzen.com. Please use sharing service if you want to send us big files.