[CLOSED] Close ComboBox popup in javascript? And some other ComboBox questions

  1. #1

    [CLOSED] Close ComboBox popup in javascript? And some other ComboBox questions

    Hey,
    I have these Listerens for a ComboBox:

    <Listeners>
        <Focus Handler="this.onTriggerClick();" Delay="1" />
        <Select Handler="if (this.getValue() > 0) { #{ComboBox2}.focus(); }" />
    </Listeners>
    Question 1: How can I close it on Blur?

    Question 2: Difference between TAB and ENTER when the popup is open.
    Also, it seems to be a difference between how I "leave" a ComboBox. The ComboBox gets Focus, and the popup is opened by the Listerner above. When I then press TAB, it selects the first item in the list and moves on, the second Listener if fired and ComboBox2 gets the Focus.

    If I however press ENTER instead of TAB, then it just closes the popup but doesnt seem to actually "choose" the value, and this I know since the Focus is not shifted to ComboBox2 as would happen if a value was actually selected.

    So, when pressing ENTER - is no value selected?
    Last edited by Daniil; Apr 25, 2011 at 7:58 AM. Reason: [CLOSED]
  2. #2
    Hi,

    1. Combo automatically closes the list on blur. Just your select event handler opens it again (by default, combo select an item on blur if the list is expanded)

    2. For me, ENTER select the item (for example, see https://examples1.ext.net/#/Form/ComboBox/Overview/)
    Please provide test sample which demonstrates the issue

Similar Threads

  1. Set Combobox selectedIndex via JavaScript
    By Tbaseflug in forum 2.x Help
    Replies: 1
    Last Post: Mar 16, 2015, 8:07 AM
  2. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  3. Replies: 1
    Last Post: Oct 05, 2011, 12:27 PM
  4. Synchronize the height of a combobox-Popup
    By aikar in forum 1.x Help
    Replies: 1
    Last Post: Sep 29, 2011, 8:27 AM
  5. [CLOSED] ComboBox - How do I expand a ComboBox in Javascript?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Apr 04, 2011, 2:47 PM

Tags for this Thread

Posting Permissions