Re: [flexcoders] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-27 Thread Martina Smith
Hi Ralf,   Thanks a lot for the code.   It worked...   Regards, Martina Ralf Bokelberg <[EMAIL PROTECTED]> wrote: Hi Martina, whenever the dataprovider is updated, you need to refresh the selectedIndex. You can use a binding function for this. This should work with cairngorm also. H

Re: [flexcoders] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-26 Thread Ralf Bokelberg
Hi Martina, whenever the dataprovider is updated, you need to refresh the selectedIndex. You can use a binding function for this. This should work with cairngorm also. Here is a little example.     xmlns:mx="http://www.adobe.com/2006/mxml"     layout="vertical"    >                            

Re: [flexcoders] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-26 Thread Martina Smith
Thank Ralf,   Could you please elaborate on this?   I am using cairngorm architecture. According to this architecture, the command should modify the model, and the view will receive the updated values through binding with model.   The problem here is that the model has the updated values,

Re: [flexcoders] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-25 Thread Ralf Bokelberg
Hi Martina, you could try to set the selectedIndex using callLater after the dataProvider has changed. Cheers,Ralf. On 7/24/06, Martina Smith <[EMAIL PROTECTED]> wrote: Hi,   I am using the ComboBox component () in flex 2.0. I am attaching the dataprovider to the combobox by the bind prope

[flexcoders] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-24 Thread Martina Smith
Hi,   I am using the ComboBox component () in flex 2.0. I am attaching the dataprovider to the combobox by the bind property. The Dataprovider is actually an array. The items in the dataprovider get refreshed dynamically.   Here is how I populate the combobox items:     I want to maintai