2 Replies Latest reply on Jun 14, 2010 1:53 AM by itzik_341

    multi languages support of ComboBox type ahead feature

    itzik_341

      Hi

       

       

      From Flex 3 livedocs (http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_5.html):

       

      In its editable state, the user can type text directly into the top of the list, or select one of the preset values from the list. In its noneditable state, as the user types a letter, the drop-down list opens and scrolls to the value that most closely matches the one being entered; matching is only performed on the first letter that the user types. 

       

      Flex combo-box indeed supports that type ahead for first letter - in English.

      e.g. for the combo box with the following list of items: {"apple","banana","orange"}, when the combo is focused and user is typing 'b'  -  "banana" will be selected.

       

      when I tried with other languages (i.e. russian) - it doesn't work...

       

      any ideas?

       

      thanks

      Itzik

        • 1. Re: multi languages support of ComboBox type ahead feature
          Flex harUI Adobe Employee

          That capability is only supported for low-ascii.  The ComboBox passes they

          KeyboardEvent to the dropdown List.  The List has overridable methods like

          findKey that you can override to handle other character codes.

          1 person found this helpful
          • 2. Re: multi languages support of ComboBox type ahead feature
            itzik_341 Level 1

            Thanks for you reply.

             

            how can I combine both dataProvider and List in ActionScript to a single comboBox?

             

            in MXML it would look like:

             

             

             

             

             

             

             

             

             

            <mx:ComboBox id="combo" dropdownFactory="the.custom.List.sub.class.goes.here">

                 <mx:dataProvider>

             

             

             

                      <mx:Array>         

             

             

             

             

                           <mx:String>AAAAAAAA</mx:String>

             

             

             

             

                           <mx:String>ABBBBBBB</mx:String>

             

             

             

             

             

             

                      </mx:Array>

             

             

             

                 </mx:dataProvider>

            </mx:ComboBox>

             

             

            but in ActionScript I couldn't make it work.

             

            someone?

             

            thanks

            Itzik