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, but the view is not refreshed with the latest values.
I tried using callLater function but it did not silve the problem. One more problem with callLater is that it works only with UIComponent.
Thanks & Regards,
Martina.
Ralf Bokelberg <[EMAIL PROTECTED]> wrote:
Ralf Bokelberg <[EMAIL PROTECTED]> wrote:
Hi Martina,
you could try to set the selectedIndex using callLater after the dataProvider has changed.
Cheers,
Ralf.
On 7/24/06, Martina Smith <martina_smith_[EMAIL PROTECTED] > wrote:co.in Hi,I am using the ComboBox component (<mx:ConboBox>) 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:<mx:ComboBox id="contactListDropDown" selectedIndex="{TestModelLocator.getInstance ().selectedUserInde xAsNumber}" dataProvider="{TestModelLocator. getInstance( ).dataProviderAr ray}" change="contactListChangeHa ndler(event)"/> I want to maintain the old selectedIndex everytime I refresh the dataprovider.The problem I am facing is that the 'selectedIndex' property is not getting refreshed even if I store the old value. The ' selectedIndex' resets to 0 once the dataprovider is refreshed.I need to get this thing solved as my functionality depends on the current selected index of the combobox.Thanks in Advance,Martina
Find out what India is talking about on Yahoo! Answers India.
--
Ralf Bokelberg <ralf.bokelberg@gmail.com >
Flex & Flash Consultant based in Cologne/Germany
Heres a new way to find what you're looking for - Yahoo! Answers __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] Problem with binding of selectedIndex prop... Martina Smith
- Re: [flexcoders] Problem with binding of selectedIndex... Ralf Bokelberg
- Re: [flexcoders] Problem with binding of selectedI... Martina Smith
Reply via email to

