Posted 30 December 2020, 5:15 pm EST
In the example Grid CustomEditor AutoComplete examplehttps://www.grapecity.com/wijmo/demos/Grid/Editing/CustomEditors/purejs, entering in the characters ut in the a Product cell brings up a listbox with items to select. The item selection can be initiated from the keyboard when the listbox is visible via the down arrow key. The behavior breaks however, when the editor has a formatItem defined; the listbox goes away, focus is set to an empty cell.
-
How can the default AutoComplete behavior key navigation be restored when when using a custom formatItem?
-
If an item is selected in the listbox, the Enter key will change the cell the value to that of the selected listbox item. Is there a way to extend the AutoComplete behavior, such that the Enter key selects the first item from the visible listbox when no items in the listbox are selected.
Existing Behavior
Typing ut displays the following options:
-
"* “CornNuts”
-
“KP Nuts”
-
“Nobby’s Nuts”
"
Pressing the down arrow key selects CornNuts in the listbox.
Pressing the Enter key, then triggers CornNuts to be the cell’s selected value.
Desired Extended Behavior
Typing ut displays the following options:
-
"* “CornNuts”
-
“KP Nuts”
-
“Nobby’s Nuts”
"
Pressing the Enterkey, then triggers CornNuts to be the cell’s selected value.