Skip navigation
Gboro54
Currently Being Moderated

multi column sorting

May 4, 2007 10:04 AM

I am wondering if it is possbile to sort data grids in multi columns?? For example lets say the data grid simply looks like this:

Name Date
Art 10/29/06
Chris 12/02/04
Bob 02/21/07
Bo 08/08/05

And i want to sort it in abc order first then within that sort(abc order) have does be sorted again by date so that A's will stay together, B's and so on...Is this possible and if so how?

Thanks for all the help
 
Replies
  • Currently Being Moderated
    May 10, 2007 9:20 AM   in reply to Gboro54
    var s:Sort = new Sort();
    // replace the field_name here
    s.fields = [ new SortField("Name",true),new SortField("Date",true)];
    your_data_grid.dataProvider.sort = s;
    your_data_grid.dataProvider.refresh();
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points