Posted by: Sameer on: November 4, 2009
There were some concerns over the performance of GroupingCollection class while grouping and calculating summaries.
So, a new class GroupingCollection2 is introduced in the data visualization components.
The major improvements in GroupingCollection2 are -
1. Grouping performance improved.
2. Summary calculation performance improved. Now, instead of looping over the data again and again, summaries are calculated in a single [...]
Posted by: Sameer on: November 19, 2008
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 [...]
Posted by: Sameer on: April 25, 2008
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.
Posted by: Sameer on: March 14, 2008
When you set Object/Collection as a source for an AdvancedDataGrid to display the source in a Hierarchical manner, the AdvancedDataGrid.dataProvider will return an instance of IHierarchicalCollectionView because internally the source is used to construct a HierarchicalCollectionView which is returned via the dataProvider property.
What if, you want the original source from this IHierarchicalCollectionView. Well, there are [...]
Posted by: Sameer on: February 18, 2008
There is a post in Flex component Yahoo group on how to show a 3-state checkbox in an AdvancedDataGrid.
It has been implemented for the Flex Tree Control in the Flex cookbook.
I thought lets write a similar example for AdvancedDataGrid. I made some changes in the original sample and here it is; working for the [...]
Posted by: Sameer on: February 13, 2008
This example shows how AdvancedDataGrid can be configured to show summary with the Group node.
Here, I’m using GroupingCollection to calculate the Summary with summaryPlacement being “group”. Then using groupLabelFunction in AdvancedDataGrid and returning the Group Node’s value plus the Summary value.
Source mxml is located here.
Posted by: Sameer on: December 6, 2007
The GroupLabel specified while creating a GroupingCollection can be accessed while displaying summaries in AdvancedDataGrid.
Although, accessing the GroupLabel in summary rows can be quite a tedious task but it can be very useful.
Here is a sample. In this sample, the Group name is displayed in the summary rows along with the value for the [...]
Posted by: Sameer on: October 12, 2007
Filtering of Hierarchical Data in AdvancedDataGrid is quite straight forward.
Assign the filter function to the ADG’s dataProvider and call refresh() -
// assign filter function to
//the AdvancedDataGrid’s dataProvider
IHierarchicalCollectionView(
adg.dataProvider).filterFunction =
[...]
Posted by: Sameer on: August 14, 2007
I’ve written a small application showing how auto filtering can be used in an AdvancedDataGrid.
In the sample, the first two headers are TextInput control which are used as input for the text.
I’ve written a custom itemRenderer using TextInput. On the change event of the TextInput, filtering is applied to the dataProvider and the result [...]
Posted by: Sameer on: August 6, 2007
I like the auto-re sizable functionality of the columns in most of the grids.
Common applications include Windows Explorer and File Browser in Ubuntu.
So, I decided to write my own in AdvancedDataGrid.
Here, double-clicking the separator between the headers will resize the corresponding column to fit in the contents.
Check out the sample here
Try clicking the header separator [...]