I wrote a small app to test this. The app generates random data and displays it in AdvancedDataGrid(ADG) when "Populate ADG" is clicked. The number of data rows can be modified using the numeric stepper. A click on "Group" starts async refresh and ADG starts displaying the results immediately. Grouping can be cancelled any time using "Cancel Grouping". The three check boxes allow different combinations of grouping to be performed.
Option to pause/resume a refresh is not available.The source is available here.
8 comments:
Hi I am Rohit. I liked the test application that you have posted. Is it possible to share the source code of the example. I wanted to understand the grouping and the async refresh thats happening.
I have posted the link to source in the main topic.
Great example. Thanks a lot.
How to provide summay (count) at each group level?
Thanks
summaryPlacement="group" should help.
Nice example Sreenivas... Now which method on the GroupingCollection will tell me that grouping thread is busy ...i would like to display a message to the user that the grouping is going on... and when the grouping is done ...i would clear the info text message
Found the answer:
groupingCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE,
function(e:CollectionEvent):void {
if(e.kind == CollectionEventKind.REFRESH){
trace('groupingCollection is refreshed*************');
}
});
GroupingCollection2.refresh(true) does not render one at a time instead it renders the whole report all at once.
My comments related to this at the end of this JIRA http://bugs.adobe.com/jira/browse/FLEXDMV-1689
Really? The three check boxes allow different combinations of grouping to be performed, correct? This is great! I am impressed by this news!
Best wishes,
editing services uk - edit-ing.services
Post a Comment