Flex list-controls - maintain remote data

Posted by artemb on Stack Overflow See other posts from Stack Overflow or by artemb
Published on 2009-08-29T09:14:27Z Indexed on 2010/06/09 8:02 UTC
Read the original article Hit count: 163

Filed under:
|
|

Hello.

I have a TileList which represents some remote data. I also have a form which allows me to change the data. And the data may be changed by someone else too.

What is the best way to maintain data in the list in an up-to-date state? The simplest option I see is the following:

  1. Select an item in the list
  2. Edit it in the form
  3. Save it. The form submits the data to the server
  4. When the server reports success the list re-fetches it's data

The very bad thing about this workflow is that the list loses selection (a tree would also loose the nodes' expanded/collapsed state). I would really love to find out another option which would enable the list to maintain it's selection state. Any guesses on how it may be done?

© Stack Overflow or respective owner

Related posts about flex

Related posts about list