Re: [flexcoders] Lazy loading trees

2008-12-15 Thread Samuel Neff
How much data do you really need to load in the tree? If it's only a thousand or so records, while that may be a lot to some, it's fine to load at once and forget lazy loading. If the data is sent to client via AMF then the size over the wire isn't that big either, and most likely the additional

[flexcoders] Lazy loading trees

2008-12-09 Thread dandante
Hello, I have a Tree control and I want to load each node's children in lazy fashion--that is, when the user expands a node, I want to fetch that node's children from the server. (there is way too much data to populate the entire tree ahead of time). I've looked around and the closest I came

Re: [flexcoders] Lazy loading trees

2008-12-09 Thread Johannes Nel
Implement ITreeDataDescriptor and set the tree's data descriptor thus every time you open a node you call the getChildren function of your data descriptor a simple example internal class ReferenceDataDescriptor implements ITreeDataDescriptor { private var