--- In [email protected], Adrian Williams <[EMAIL PROTECTED]> 
wrote:
>
> All,
>    
>     I discovered a frustrating feature of the ADG when using 
> groupings...the ADG automatically sorts the displayed data by the 
field 
> you are grouping on.  I really, really need the ability to disable 
this 
> as I am incorporating a displayOrder option for my users to define 
what 
> order they want the groupings to appear in.  The data is coming 
from my 
> webservice based on the displayOrder but once it gets populated in 
my 
> ADG, it's re-ordered by the grouping. 
> 
>     So for example, I have 10 groups....named Group 1 through Group 
10.  
> And each of the groups displayOrder is set to the same as the 
name...so 
> the displayOrder for Group 1 == 1, Group 2 == 2, ... , Group 10 == 
10.  
> But when the ADG is rendered, it sorts them by the group names, 
which 
> are strings, and puts them out of the expected order...I get Group 
1, 
> Group 10, Group 2, etc. 
> 
>     This is a critical aspect for us and I really hope to find a 
> solution to this.

I am not sure, but I think Grouping and GroupingField have a 
groupingObjectFunction, and it may be that you can separate what gets 
shown on the screen from whatever is causing the reordering.  
Possibly you could also apply a sort to the GroupingCollection.

That being said, I am using a groupingFunction to group a bunch of 
dates by month, and, at least internally in the GroupingCollection, 
it stays in the same order as the dates are in the flat 
ArrayCollection.  These are not being displayed in an ADG, since I'm 
looking more at how a GroupingCollection can be used to allow for 
better data management in general, not just with ADG.  So it may be 
that the ADG itself is imposing the ordering.

HTH;

Amy

Reply via email to