[CLOSED] non-editable combobox item selection by pressing key

  1. #1

    [CLOSED] non-editable combobox item selection by pressing key

    Hello:

    Is it possible to make a non-editable combobox select the first item in the list that begins with the pressed key, much like the standard html select component? To see exactly what I mean, take a look at the subscription combobox on the edit post page on this very forum. If you press for instance D, it will move the selection to 'Do not subscribe'. If you press D again the selection will move to 'Daily using email'.

    I use a non-editable combobox for small lists and it would be nice if the user was able to press a key and the combobox would move the list selection to the first item that begins with that key. A subsequent key press of the same key would move onto the next item that begins with that key. I know there are other options like forceSelection and typeAhead but there is some stuff that doesn't work quite right in those cases in my specific scenario.

    Thanks
    Last edited by Daniil; Oct 22, 2014 at 5:20 AM. Reason: [CLOSED]
  2. #2
    Hi @bogc,

    It looks you are looking for SelectBox.
    https://examples2.ext.net/#/Form/ComboBox/SelectBox/
  3. #3
    I looked through the combobox samples but I missed it. Thank you!

    Just for reference, because I use the control only in JavaScript I had to call:

    ResourceManager.RegisterControlResources<SelectBox>();
    in the Page_Load to include the scripts necessary to create the control.
    Last edited by bogc; Oct 21, 2014 at 7:14 PM.

Similar Threads

  1. [CLOSED] CheckBox Selection in Editable Grid
    By speedstepmem4 in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 10, 2014, 1:10 PM
  2. [CLOSED] Default Item Selection in Combo Box
    By shaileshsakaria in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 11, 2013, 12:21 PM
  3. Replies: 1
    Last Post: Mar 15, 2013, 1:33 AM
  4. Implement change combobx on the grid panel
    By cidzhao in forum 1.x Help
    Replies: 0
    Last Post: Nov 04, 2009, 11:07 PM
  5. ComboBox - Item Selection Width
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Dec 27, 2008, 7:06 AM

Posting Permissions