I think this can be achieved using custom collection/list. You can 
make your list as two lists concatenated and then override the sort 
behavior to sort only the first list.

Please see the related series of posts on Alex Harui's blog 
(http://blogs.adobe.com/aharui/2008/03/custom_arraycollections_adding.
html)

--- In [email protected], "Pierre Michel" <[EMAIL PROTECTED]> 
wrote:
>
> Hi all,
> 
> I've got a problem with a custom overriden AdvancedDataGrid I've 
made
> : I want to "exclude", or omit the LAST element (that I've stored in 
a
> property of my overriden DataGrid) in sorts.
> 
> For example, let's say that I'm going to sort column #1, which is
> provided with strings, and all I want is the normal sort to occur,
> except for the last item which is to stay where it is..
> 
> I also want this modification to be global (that's why I've 
overriden
> the component).
> 
> I've tried several approaches :
>   - Overriding the protected methods sortHandler and
> headerReleaseHandler (found in AdvancedDataGrid).
>   - Overriding the method addSortField.
> 
> The last attempt proved to work better, but alas doesn't sort more
> than once : I can't revert the "descending" property of the 
SortField.
> 
> Any idea on how to do that ?
> 
> Big thanks in advance
> 
> Pierre
>



Reply via email to