On 11/14/05, Sandip Patil <[EMAIL PROTECTED]> wrote: > I am using, > > <mx:ComboBox dataProvider="{['1', '2', '3']}" prompt="{[whatever value > selected]}" /> [snip]
> But when I click on update button it should show me whatever values I > selected while saving. > It is showing me the required value. > > But it is showing me twice that value. > as a)promted > b)dataprovider > > How to avoid this to show value twice. The prompt property is weird because it updates the data provider. We're changing it in Flex 2 (not yet in the alpha build) so it is just that -- a prompt. For now, the only suggestion I have is to compare the first item with the prompt you want to set and set it only if it's not already set. ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/