what does the data look like?

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Root
Sent: Tuesday, October 02, 2007 8:59 AM
To: [email protected]
Subject: [flexcoders] Sorting content in a List component



I have two lists, with the ability to drag items from one to the
other. works fine..

However, my users have asked that the data in the "destination" list
be sorted alphabetically rather than just dropped in place.

I can't get this to work though. By default, the list items are
dragged in and placed in the array collection where they are dropped.

So I've added the following code to my dragComplete vent handler:

var target:List = List(cboSelectedFundcodes);
var sort:Sort = new Sort();
sort.fields = [new SortField("LABEL", true)];

ArrayCollection(target.dataProvider).sort = sort;
ArrayCollection(target.dataProvider).refresh();

However, this doesn't seem to have any affect.

Any suggestions?

-- 
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com


 

Reply via email to