In the tree structure, normally, there have a folder and a
triangle in front of the folder. My tree is dynamically load data
into the tree. It means when I click a folder, it call itemclick()
action, it goes to call a web services, get response from web
service, load the next layer data in to the tree.
When I click folder icon, it does what it suppose to do. But
when I click the triangle, it only works on open or close folder.
But it doesn’t go to call the itemclick action.
I would like to know how can I make click triangle and click
folder do same function. Or can I hide this triangle?
When you click the triangle, the Tree dispatches the events
itemOpen and itemClose. Use those like you use the itemClick event.
And I think it makes more sense to use just the itemOpen event. I
mean, you want to fetch the next level only if the user opens a