Transfer http://blog.csdn.net/susan_Zhang/archive/2009/08/28/4493056.aspx
In the past two days, the tree's automatic acquisition function was finally completed, and two problems were encountered during this time. After a long time, the problem was finally solved. Haha
1. If the automatically obtained tree data exceeds the display range, the scroll bar is not automatically generated.
Solution:
Distribute events after obtaining data.
Arraycollection. itemupdated (item );
Arraycollection. dispatchevent (New collectionevent (collectionevent. collection_change, false, false, collectioneventkind. Add,-1,-1, [item]);
2. When there is a large amount of data, the problem of repeated display or some undisplayed display occurs when the scroll bar is quickly slide at multiple nodes, because the itemrender in the tree is also used to produce latency.
Solution:
Call the mytree. invalidatelist () method in tree scroll to refresh the tree.
After this modification, the tree refresh is indeed much better, but sometimes there are still problems, continue to solve.