I am reading some data every 10 seconds and displaying it in
advancedDataGrid.

The data is grouped by certain colomn from the advancedDataGrid.

My problem is that when the data gets reloaded the next time, the
nodes that were opened previously by the user to check the data
disappers.  Basically the grouping gets collapsed everytime ( in my
case every 10 seconds ) when I reload the data.

Below is my code where I am trying to display the information based on
the grouping but the nodes that are opened should stay opened. This
grouping is only one level down.

alertsDetailData has the data displayed in advancedDataGridErrorsId
AdvancedDataGrid.

if ( advancedDataGridErrorsId.dataProvider is
IHierarchicalCollectionView ) {
                                groupingCollection.source = alertsDetailData;
                                var openNodes:Object = 
IHierarchicalCollectionView
( advancedDataGridErrorsId.dataProvider).openNodes
                                groupingCollection.refresh();
                                advancedDataGridErrorsId.dataProvider = 
groupingCollection;
                                advancedDataGridErrorsId.validateNow();
                                IHierarchicalCollectionView
(advancedDataGridErrorsId.dataProvider).openNodes = openNodes;
                                IHierarchicalCollectionView
(advancedDataGridErrorsId.dataProvider).refresh();

                        }

What am I doing wrong to be not able to save the openNodes and
closedNodes in the order they were everytime the data is reloaded.

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to