Maybe someone who has actually done this will be more help, but I
suspect that your could use the "selection" manager and or property to
manipulate the text selection and cursor position.

 

Finding the best event to handle this might be tricky.

 

I would expect there to be a way to programaticall open the drop list
too, but I have not dug into the docs to find out how.

 

This sounds like the AutoComplete component.  Perhaps there will be code
in there that might be of use.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Thursday, October 09, 2008 5:25 PM
To: [email protected]
Subject: [flexcoders] Re: ComboBox edit field selection when populated

 

Forgot to ask: Also, how do I get the combobox to popup its list when
the combobox populates with the returned items.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> I have a combobox that is unpopulated on open but is editable. As the
> user types, I check the length of the text field and at a certain
> point I fire off a RemoteObject call to the server. This returns a
> list of items that match what the user enters. Great, this bit works.
> 
> Now, I want to populate the combobox with this list which works great
> BUT I want the textfield to still be the same and to have the cursor
> at the end of the text so the user can keep typing and narrow down the
> returned items.
> 
> What happens is that the combobox populates with the returned items,
> and the editable field becomes the first item returned. Now, I can set
> the first item of the dataprovider to what the user had typed so far
> but when the combobox populates, this first item is selected so the
> user types over everything he has just typed.
> 
> How do I get this to not be selected and the cursor at the end of the
> text?
>

 

Reply via email to