I'm not quite sure what you are asking.

 

There is no sort property on a list, it is on the collection that the
list is viewing.  As such, you will have to write a little bit of code.
An example might be

<mx:List id="list1" dataProvider="{dp}"
creationComplete="list1.collection.sort = new Sort();...
list1.collection.refresh()" />

 

I'm not quite sure what a double list box is.  If I have a component
class called DoubleListBox, I can put it in a Form via MXML as in:

 

<mx:Form>

            <mx:FormItem>

                        <DoubleListBox id="foo" />

 

Any object with an id attribute is addressable from script.

 

-Alex

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of John Farrar
Sent: Tuesday, December 05, 2006 12:24 PM
To: [email protected]
Subject: [flexcomponents] Passing Sort criteria to components.

 

OK... I can pass list box sort functions, and the field to show in list 
boxes for components. I need to pass the sort in.

Also... if we are going to be using this component in a form... is 
there a way to pass the ID of a double list box in? Will I have to 
rewrite those functions to create the objects with actionscript?

Thanks for assistance in advance.

John

 

Reply via email to