I have troubles understanding how to use the grouping feature of an
advancedDatagrid.
How do you group on field1 BUT display field2 as the label of the group ?
When I put :
var grpField:GroupingField = new GroupingField;
grpField.name = "field1"; // group on field1
grpField.groupingFunction = groupFunc;
private function groupFunc(item:Object, field:GroupingField):String
{
// display field2 as the label of the group
return item.field2;
}
He actually groups on field2, ignoring totally field1.
the documentation says that groupingFunction is "A function that
determines the label for this group", and not a function who is
supposed to influence the grouping.
Help me, I'm kind of lost :)
Thanks in advance