RE: [flexcoders] Problem while sorting DataGrid column

2010-04-08 Thread Peter DeHaan
I don't think I'm seeing the same behavior as you. I only see the scrolling behavior if there is an item selected in the DataGrid, in which case it autoscrolls after clicking the data grid header so that the selected item is always visible. Based on your halo namespace, you may want to try

Re: [flexcoders] Problem while sorting DataGrid column

2010-04-08 Thread Alex Harui
Are you using Flex 3.5 or later? I think we tried to fix that in 3.5 On 4/8/10 11:39 AM, Patil Yogesh patilyoge...@gmail.com wrote: I saw an weird behavior while sorting datagrid column. 1. Launch an application with editable datagrid one tab of any browser. 2. Datagrid should have more

RE: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread Tracy Spratt
I would use a sort function, so I could debug any problems. I'd also suggest an e4x expression instead of the loop. Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anuj181 Sent: Wednesday, March 04, 2009 6:51 PM To:

RE: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread Alex Harui
If you have a labelfunction, you'll probably need a custom sortcompare function Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anuj181 Sent: Wednesday,

Re: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread crazy developer
Hi Thanks for replying What does we mean by custom sort compare function, Can we provide any examples of both sort and sort compare functions or little more details about what and how does we do that? Thanks much fro your help On Thu, Mar 5, 2009 at 11:24 AM, Alex Harui aha...@adobe.com wrote:

RE: [flexcoders] Problem with Sorting

2006-08-31 Thread Deepa Subramaniam
The SortField objects take the name of the field in the object to be sorted as a String so your dot _expression_ will not work. What you can do is write a custom compareFunction for your Sort object. A compareFunction takes two objects and returns -1, 0, or 1 depending on which