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:
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.
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>
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.
Comment