[Flashcoders] in AS2, what is the correct way to update a DataGrid's dataProvider

2011-04-21 Thread Andrew Sinning
I have a screen with a DataGrid that displays live data, that is, data which is constantly changing. It's not a very large amount of data, so I just make a query to the server every 2 seconds to get the new data. When the new data comes in, the easiest thing to do would be to simply set the

Re: [Flashcoders] in AS2, what is the correct way to update a DataGrid's dataProvider

2011-04-21 Thread Deepanjan Das
Hi Andrew, Try this logic. So have an object which holds the sorting details, and another object/array which holds the unique ID/s of the selected rows. Now just implement the dataProvider of the new set on each data load. Then set the sorting and select the ID with try catch as the ID which you