I am still not clear on how this can be done. I must use a combobox (this is
a must-have for me). This is what I attempted... can you please give some
pointers based on my code below? 

<?xml version="1.0" encoding="utf-8"?>
<mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml"; change="close()">
        <mx:Script>
                <![CDATA[

                    override public function close(trigger:Event = null):void {
                        //Do nothing
                    }
                ]]>  
        </mx:Script>
        <mx:dropdownFactory>
                <mx:Component>
                <mx:List>
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:CheckBox selectedField="isSelected"
                                    click="onChange(event);">
                                <mx:Script>
                                    <![CDATA[
                                        private function 
onChange(evt:Event):void {
                                           data.isSelected = !data.isSelected;
                                        }
                                    ]]>
                                </mx:Script>
                            </mx:CheckBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:List>
        </mx:Component>
    </mx:dropdownFactory>       
</mx:ComboBox>



Thanks
Ram

--------------------------------------------------------------------------------------------------


rviswanathan wrote:
> 
> Hi 
> 
> I have created a combo box with a checkbox renderer on each of its items.
> When I select an entry in the combobox, the box closes automatically.
> 
> I want to prevent his so that I can multiselect elements in the combobox.
> 
> Is there a way to do this? Even if I extend the ComboBox and override its
> close method, the combobox still closes (and I realized that there is a
> private method in ComboBox.as called destroyDropdown() which gets called
> when the collection that the combobox holds changes.
> 
> Thanks
> Ram
> 

-- 
View this message in context: 
http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp17644507p17666884.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to