Hi Amruta,
Please use the beow code to find the sorted columns
for (var i:int; i < adg.dataProvider.sort.fields.length;i++)
{
var sortField:SortField = Sort(adg.dataProvider.sort).fields[i];
}
U will get all the info in this sort field class
Hope this solve ur problem...
Regards
Gagan Deep
On 10 July 2011 20:24, Amruta Kulkarni <[email protected]> wrote:
> Hi,
>
> My requirement is after sorting datagrid on particular column at runtime by
> user I need to know on which column user has sorted datagrid & the sort
> order also(i.e ascending or descending).
>
>
>
> On Sat, Jul 9, 2011 at 7:00 PM, Akshay Ransing <[email protected]>wrote:
>
>> On 7/8/2011 7:14 PM, Amruta Kulkarni wrote:
>>
>>> Hi All,
>>> Does anyone know how to find current sort order for datagrid in flex3?
>>> Thanks in advance
>>> -Amruta
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Flex India Community" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to flex_india+unsubscribe@**
>>> googlegroups.com <flex_india%[email protected]>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/flex_india?hl=en <http://groups.google.com/group/flex_india?hl=en>
>>> .
>>>
>> Hi,
>>
>> What exactly do you want ?
>> if you want sorted data then code is below.
>> dataGridId.dataProvider as ArrayCollection
>>
>> Thanks,
>> Akshay
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to flex_india+unsubscribe@**
>> googlegroups.com <flex_india%[email protected]>.
>> For more options, visit this group at http://groups.google.com/**
>> group/flex_india?hl=en <http://groups.google.com/group/flex_india?hl=en>.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
*Thanks*
*Gagan Deep*
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.