Consider a scenario in which you want to group some data and display it in an AdvancedDataGrid. Now, you open some nodes. And you want to add summaries to the data. Adding summaries means to re-group the data by calling GroupingCollection.refresh(). But the state of open nodes will be lost as new Objects are created for the group nodes while re-grouping.
I’m posting a sample in which the open nodes are preserved.
Open the sample, click on Group data, open some nodes and then click on Add Summary. The nodes which are open will remain open.
Basically, here I’m giving the same UID for the group nodes as they were before (re-grouping). That’s why, the open state is maintained.
Note: This sample will work only if the grouping fields are same for both groupings. It’ll need some tweaking in case the grouping fields are changed.
Usually people like to write the AdvancedDataGrid component in mxml. But there are some scenarios where there is a need to create the grid dynamically.
Here is a simple sample in which an AdvancedDataGrid is created dynamically with column groups.
Source is posted here.
Hello Advanced DataGrid users,
We have added a poll about AdvancedDataGrid’s performance. Please take part in the poll and help us identify the areas which needs improvement.
The poll is hosted at flexpearls
In this sample, I’m using an Advanced DataGrid as an item renderer within another Advanced DataGrid. This type of configuration is very useful to give a master-detail view. This configuration can be customized more depending on any specific requirements.
Application Source, Renderer source
Thanks to Sreeni for coming up with this.