Treeview - First level doesn't check HasChildren property

Hello

I am trying to remove the arrow in the tree on the first level when there is no records.
I can remove it after the first level (second and beyond), because it calls the "LoadFiles" function and there I can control the HasChildren property.

It's easy to check, just go to the Demo:

It's easy to see that the arrow it's there, even if there is no files inside:
image

It's there a way to control this on the first records load?

Best regards,
Ricardo

Child items in this demo are loaded on demand - you don't know if you have items or not before you load them. In this demo however the items are loaded initially and if you change the Tree to show all employees you will notice that some of them are not expandable:

Nice, with that I could fix my project. I just added the:

HasChildren=@(path => ( System.IO.Directory.GetDirectories (( string ) path).Count () > 0 ))

to the RadzenTreeLevel.

I think it makes sense the demo for tree with directories to also contain this.

Thank you

You can submit a pull request with this change. We will gladly accept it.