Hi sworthy.
I tried
var isLeaf = $('#tt').tree('isLeaf', node.target);
It gives to me a "false value" all the time even if the node has children ! I think it's normal because , all my nodes are folders and not leaf (at this time).
I explain my problem again, because I think you don't understand it the first time.
I want to modelize in a tree some REGATE (first level of folder) which contains some GROUP (second level of folder) which contain some CONTACT (third level of folder) which contain some GPSPOINTS( leaves at the fourfth level).
As I can have a lot of objects to show in my tree, I load data only for the branch user selects it one level by one level.
Initialy, I have a empty tree. I load by an ajax request the REGATE as first folder (but not these sub contents).
When then I click to expand a folder REGATE, I execute an other ajax request to load the content (the GROUPS) et show it (but not these sub contents).
When I click to expand a folder GROUP, I execute an other ajax request to load the content (the CONTACTS) et show it (but not these sub contents).
And to finish , when I click to expand a folder CONTACT, I execute an other ajax request to load the content (GPSPOINTS) as leaves.
So when I select a level of the tree, I have to know if the data is already loaded or not to forbide two identical loads. And I think that the method to know if the node has a child folder ou children folder is the good.
Sorry for the long explain, but maybe it's clearly for you Sworty ?
Finally how to determine if a folder node has folder children ?
Thanks.
Cyril