Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6994681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:55:23+00:00 2026-05-27T19:55:23+00:00

I am using editable combobox for my application. Combobox have default behavior like If

  • 0

I am using editable combobox for my application. Combobox have default behavior like

If I enter some text which is not similar to the combobox dataprovider values, combobox by default select first dataprovider value and close the dropdown window. I want stop this default behavior.

Ex. I have combobox with the dataprovider value. (stack, stackoverflow, stackoverflow A)
I open the dropdown and see the “stackoverflow A” value is in the dropdown. Now I enter value “stackoverflow B” but this value is not in the dropdown so when I enter, combobox override my entered text and replace “stackoverflow B” with first value of dataprovider(dropdown) “stack” and fire the selectedindex change event. I want to stop default behavior of combobox of selection of first value by default and look for entered value.

I have tried doing selectedindex to -1 by default but its still taking the first value by default. Any work around or suggestion would be helpful.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:55:24+00:00Added an answer on May 27, 2026 at 7:55 pm

    I think this will gonna be helpful to you…

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" horizontalAlign="center" 
    verticalAlign="middle" height="100%" width="100%">
    
    <mx:Script>
        <![CDATA[
            public var arr:Array = new Array({isSelected:true,label:'ABC',score:'78',name:'ABC'},
                                             {isSelected:true,label:'DEF',score:'50',name:'DEF'},
                                             {isSelected:false,label:'GHI',score:'70',name:'GHI'},
                                             {isSelected:false,label:'JKL',score:'80',name:'JKL'},
                                             {isSelected:true,label:'TRE',score:'50',name:'MNO'});
    
            public function dgCLG_dataChange():void
            {
    
            }
    
            public function dgCLG_change():void
            {
    
            }
    
            public function btnSubmit_click():void
            {
                dgCopy.dataProvider = dgCLG.dataProvider;
            }
    
        ]]>
    </mx:Script>
    
    <mx:VBox height="100%" width="100%" horizontalAlign="center" verticalAlign="middle">
        <mx:DataGrid id="dgCLG" dataProvider="{arr}" editable="true" dataChange="{dgCLG_dataChange();}" change="{dgCLG_change();}">
            <mx:columns>
                <mx:DataGridColumn headerText="" dataField="isSelected">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:Box horizontalAlign="center" verticalAlign="middle" height="100%" width="100%">
                                <mx:Script>
                                    <![CDATA[
                                        override public function set data(value:Object):void
                                        {
                                            if(value != null)
                                            {
                                                super.data = value;
                                                var temp:Object = value as Object;
                                                chb.selected = temp.isSelected;
                                            }
                                        }
                                    ]]>
                                </mx:Script>
                                <mx:CheckBox id="chb"/>
                            </mx:Box>
                        </mx:Component>                     
                    </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Label" dataField="label" editable="false">
    
                </mx:DataGridColumn>
                <mx:DataGridColumn dataField="name" headerText="Person" itemEditor="ComCB" editorDataField="value" editable="true">
    
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>  
    
        <mx:Button id="btnSubmit" label="Click" click="{btnSubmit_click();}" />
    
        <mx:DataGrid id="dgCopy" editable="false">
            <mx:columns>
                <mx:DataGridColumn headerText="CopyLabel" dataField="label" />
                <mx:DataGridColumn headerText="CopyMarks" dataField="score" />
                <mx:DataGridColumn headerText="CopyPerson" dataField="name" />
            </mx:columns>
        </mx:DataGrid>
    </mx:VBox>
    
    </mx:Application>
    

    Here is the ComCb Component.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" dataProvider="{arr}" selectedIndex="1" creationComplete="{c_complete();}" >
    <mx:Script>
        <![CDATA[
            public var arr:Array = new Array({label:'ABC'},{label:'DEF'},{label:'GHI'},{label:'JKL'},{label:'MNO'},{label:'XXX'})
    
            public function c_complete():void
            {
                for(var i:int = 0; i < arr.length; i++)
                {
                    if(arr[i].label == parentDocument.dgCLG.selectedItem.name)
                    {
                        this.selectedItem = arr[i];
                    }
                }   
            }
        ]]>
    </mx:Script>
    </mx:ComboBox>
    

    might be this will gonna helpful to you…

    Have a NICE D@y…….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jqgrid 3.8. I have a grid which is having some editable
I would like to have a ComboBox control on a form which will be
I am using non-editable JTextPane to show some data in HTML format. I have
I have a page using JQuery and Jeditable to create editable text elements on
I'm using an Telerik RadGridView in a WPF application, which has two editable columns
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I have ExtJS Grid. And I am using Roweditor plugin with combobox. When I
Hopefully this is a quick one! I have an editable grid using 'clientSide' (local)
I am using jQuery autocomplete which is working fine with existing element but not
I'd like to add a drop-down list to a Windows application. It will have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.