As per your code/design there is no way to determine that node 'FK1' wont have any child nodes without triggering backend request, so tree UI control by default assumes that there might be some child controls and gives the 'expand' option.
if you want to unexpand a node or assuming that node is a leaf then you should load all the data before the control instantiation and bind it using local json model
your code?
i am using json model, I don't see that icon if it has no child.
Add comment