We handle this in a couple different fashions...for data already in the
grid, (albeit for an ADG vs. a DG), by setting up a custom sorter.
var sorter:Sort = new Sort();
sorter.compareFunction = sortKitNums;
sorter.fields = new Array();
I don't know if this is overly helpful but I normally do my initial
sort on the server (It is much easier for the database to do the sorting).
If you really want to do the sort at Flex end you should sort the
underlying dataprovider using the sort and sortfield classes.
See:
look at this link. it may help.
http://www.bealearts.co.uk/blog/2007/06/15/default-sorting-for-a-flex-datagrid/
- venkat
http://www.venkatj.com
--- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote:
Hi, how can i set a default column to sort a dataGrid by? I know that
i could
You are a legend.. thanks again! That was exactly what I was looking for!
Greets, Max
--- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote:
look at this link. it may help.
http://www.bealearts.co.uk/blog/2007/06/15/default-sorting-for-a-flex-datagrid/
- venkat
4 matches
Mail list logo