Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SelectItem searched by keypress

    Hi,
    I'd like to ask, whether it is possible to achieve the same behavior for a SelectItem as it is in the HTML <select> element - search and select the option for the sequence of pressed keys.

    Assume the HTML select item:
    Code:
    <form>
    <select name="test">
    <option value="cat">Cat</option>
    <option value="car">Car</option>
    <option value="category">Category</option>
    <option value="croatia">Croatia</option>
    </select>
    </form>
    When user press "c", even multiple times, the options started with C are repeatedly selected one by another. This is ok in both HTML and SGWT Select Item.
    But when user press "cr", only in HTML Select the Croatia option is selected...

    I've tried to add a keypress handler to the SelectItem and manually search for the option. This is quite dirty and only partial solution, because this doesn't work, when the picker of SelectItem is shown...

    Any hint, how to get the wanted behavior in SelectItem?

    SmartClient Version: SNAPSHOT_v10.1d_2015-01-20/LGPL Development Only (built 2015-01-20)
    All browsers.

    #2
    This feature doesn't currently exist, and would be best handled via Feature Sponsorship if you need it (far far too complicated to attempt outside the framework).

    Comment


      #3
      Note that this feature is now supported in versions 5.1 and later, in builds dated March 18 and later...

      Comment


        #4
        Great news, thanks for the notice :)

        Comment

        Working...
        X