junwu_ma
12 years agoNew Contributor
How to know if a Flex tree node's child nodes are displayed after expanding the node?
Hi guys,
I am working on a flex tree with TC9.3. In my flex tree to test, it takes short time or long time to display all the child nodes of a parent node after expanding the parent node. My actions on the child nodes need to wait until all the child nodes show up.
Currently I am using “Delay time” to wait, but it is not ensure all the child nodes are displayed. I don’t want to give a very long delay time. Is there other way to ensure that expanding action is finished and all the child nodes are fully displayed in the tree.
I tried aTreeNode.FlexObject.listData.open, which can reflect if a node is expanded; true is expanded and false is collapsed. But it cannot indicate if its child nodes have been loaded and displayed. Even it is true, the expanding action still is not finished, and may take a while until finished.
Any input is greatly appreciated.
Regards,
Junwu
I am working on a flex tree with TC9.3. In my flex tree to test, it takes short time or long time to display all the child nodes of a parent node after expanding the parent node. My actions on the child nodes need to wait until all the child nodes show up.
Currently I am using “Delay time” to wait, but it is not ensure all the child nodes are displayed. I don’t want to give a very long delay time. Is there other way to ensure that expanding action is finished and all the child nodes are fully displayed in the tree.
I tried aTreeNode.FlexObject.listData.open, which can reflect if a node is expanded; true is expanded and false is collapsed. But it cannot indicate if its child nodes have been loaded and displayed. Even it is true, the expanding action still is not finished, and may take a while until finished.
Any input is greatly appreciated.
Regards,
Junwu