Solved

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

Posted on 2009-06-29
6
883 Views
Last Modified: 2013-11-11
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
Comment
Question by:honeybeeps
  • 3
  • 2
6 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 24743668
0
 

Author Comment

by:honeybeeps
ID: 24748268
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
 
LVL 37

Accepted Solution

by:
zzynx earned 500 total points
ID: 24750002
>> 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
 

Author Comment

by:honeybeeps
ID: 24817111
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
 
LVL 37

Expert Comment

by:zzynx
ID: 24820787
>> I'll close this case for now
OK...depending on what you mean by "closing"
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Action Script commands 3 212
Action Script coding 1 173
Accessing Live Dynamic Stream 6 190
High Internet Explorer CPU on Flash site in Citrix 2 766
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now