Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 903
  • Last Modified:

How to add custom sorting to AdvancedDataGrid to worked on grouped Data?

Hi,
I have an advancedDataGrid that I need to add custom sorting to it which overrides the original sort! my sorting should work using a combobox to select ascending and desending from with a sort button! I know this is a bug in flex that its original sorting only works in hierarchical data and not for groupingCollection
the dataProvider of my grid is a flat data. however, in the UI, the user can add grouping to the AdvancedDataGrid. so I want the sort to work on grouped data!
let's say the columns are : country, province, city. population and there is grouping on country and province
so the sorting should do the following:
1) if the user does a descending sort on country: only unitedStates will go up and Canada will go down.
2)if the user does a descending sort on province: the order of the grouping of province will change to Quebec, Ontario, British Columbia
3) if the user does a soring on city: although this is not a grouped column, it should do the sorting on all the cities.


Thanks,
0
honeybeeps
Asked:
honeybeeps
  • 3
  • 2
1 Solution
 
zzynxSoftware engineerCommented:
0
 
honeybeepsAuthor Commented:
Thanks zzynx! But would you please tell me how this is related to what I'm looking for? If you explain a little bit maybe I can figure it out
Thanks
Gol
0
 
zzynxSoftware engineerCommented:
>> would you please tell me how this is related to what I'm looking for?
You asked
     >> I want the sort to work on grouped data!
That example allows sorting even when grouping is on. (press the button "Group on xxx" buttons).
That's why I thought it could be useful to you.
0
 
honeybeepsAuthor Commented:
I'm busy building another component so I'll close this case for now, and hopefully we will figure it out later :) thanks for the help
0
 
zzynxSoftware engineerCommented:
>> I'll close this case for now
OK...depending on what you mean by "closing"
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now