Sounds promising!  Thank you to you and Joel for contributing code.  Peter
knows the DG better than I do so hopefully he'll look at it tomorrow.  I'm
wondering though, from the description below, is there a model bead
involved somewhere?  I would expect to have a  model bead store the sort
information (which column is being sorted, and whether ascending or
descending.  That way the customer can set the model to have an initial
startup sort.  Or is that taken care of some other way?

Thanks,
-Alex

On 1/4/17, 8:46 PM, "sankar" <santanu4...@gmail.com> wrote:

>/This has been discussed in Apache JIRA:
>https://issues.apache.org/jira/browse/FLEX-35222/
>
>I spent sometime to implement a custom approach to the FlexJS DataGrid
>sorting. At this moment it's in it's very initial stage but able to do
>column sorts at runtime along with notification icon
>(ascending/descending).
>I've uploaded all my class files to the related JIRA issue
>(https://issues.apache.org/jira/browse/FLEX-35222) and I'm looking forward
>for advises if I'm on right track and if it sense to continue my effort.
>Will glad to hear your suggestions.
>
>As an initial description to the implementation, following are the classes
>that I planned:
>
>*PNDataGridButtonBarButtonItemRenderer:* The class extended by
>ButtonBarButtonItemRenderer which creates the button component as column
>header and listen to it's click event. The class override to pass our
>custom
>events with requisite information; along with showing an icon for
>ascending/descending sort position.
>
>*PNDataGridColumnSorter:* A bead which can be added to DataGrid component
>class, and should supply with same field references as we supply for
>PNDataProviderChangeNotifier class - sourceID, propertyName - the class
>reference holding the ArrayList collection to DataGrid, and the field name
>for the ArrayList respectively. The class catches the event fired by
>PNDataGridButtonBarButtonItemRenderer, sort the array per column index
>(from
>which column the event fired), updates the main ArrayList and also
>re-renders the DataGrid.
>
>Thanks.
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Probable-desig
>n-to-support-DataGrid-sorting-tp57925.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to