How to manually fire tree autoload event

Hi,
I set the autoload property for the tree, so that the children will be loaded automatically when the left triangle of the parent node was clicked, and it works well.
Howevever, I need this function not only when the left triangle was clicked, but also the tree node text was clicked. I tried the tree.expand(id) method, but it doesn’t work. How to make it work?
Thx

The tree.toggle(id) method works.

1 Like