Hi,
This is a long problem that has me banging my head against a wall for ages.
I am currently in a project that shows rows of available items in a scrollPane.
The application works by getting an XML from the server that comprises of all the items available at that time, arranged in alphabetical order.
Each row is taken and a symbol that depicts a physical row is populated and attached to an empty movie clip.
[The “row” is actually a separate movie clip that has text fields to store item information + an order button]
This process takes place in a loop for as many times as there are items in the XML response.
By the end of the loop we have this movieclip with all these “rows” placed in it. This movieclip is then set as the content of the scrollPane on the main stage.
Each row has a unique item id, in the sense you will not get two items of the same id.
Now, the problem is that during the course of the project, it was found that people would be able to disable an item or add a new item, while the page was live on the net. Hence there is a need to dynamically add a new row or delete an old one, and I just haven’t been able to do that efficiently. The new row added or the old row deleted can be from any position in the existing list of items, [because of the alphabetical sort].
I have not found any way for me to update my scrollPane with a new row added in the middle or a new row removed from it short of making another server call and getting the WHOLE data again and remaking the scrollPane:( .
This has led to a huge impact on web performance…
I was thinking about using the DataGrid component here. Is there a way to keep the datagrid component updated with new rows no matter where they are added ?
Is it possible at all ??
I’d really really appreciate anyone’s help on this.
I’ll be happy to provide any new information that can help clarify this issue further
Thanks!
~TNE