Hello everybody. I am using jqxTree and method expandAll.
I’m stuck on getting all of the tree nodes.
I found what length of tree is a count of visible elements, so I want to expand all elements for write them to my array.
And I found what expandAll don’t finalizing after call, it’s need time:
$('#jqxbutton').click(function () {
var a = $("#jqxTree").jqxTree('getItems').length;
$("#jqxTree").jqxTree('expandAll');
var b = $("#jqxTree").jqxTree('getItems').length;
alert(a+" "+b); // 10 10
});
You can check this here
What should I do to get all nodes?