[ 
https://issues.apache.org/jira/browse/FLEX-35222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761534#comment-15761534
 ] 

Peter Ent commented on FLEX-35222:
----------------------------------

I think you would need to have a new ButtonBarItemRenderer to provide sort 
controls for the column headers. Then you could create new sort beads that 
would trigger a change in the dataProvider and that should get the model to 
send events to the itemRenderer factory to produce a new set of itemRenderers 
that would display the sorted dataProvider. This is merely a suggested way to 
approach the problem as there may be other solutions.

This is best done with beads since not every DataGrid would need sorting 
capability.

> DataGrid doesn't support sorting on fields
> ------------------------------------------
>
>                 Key: FLEX-35222
>                 URL: https://issues.apache.org/jira/browse/FLEX-35222
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.8.0
>            Reporter: Pan Li
>         Attachments: jqueryeasyui.jpg, safari.jpg
>
>
> Sample of current implementation: 
> taken directly from SDK DataGridExample
> !safari.jpg!
> expected:
> Gird should support sorting on fields 
> !jqueryeasyui.jpg!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to