ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: benh on July 20, 2017, 09:43:55 pm

Title: autocomplete arrow key
Post by: benh on July 20, 2017, 09:43:55 pm
Trying to get autocomplete to work with an array of objects instead of strings.  One problem left, if I try to use the arrow keys to select an item from list, the first item (or last item depending on up or down arrow) is selected and the list closes and the focus moves to the cell in the direction of the arrow key.  If I use the mouse to select, it works fine.

https://jsfiddle.net/Ben_Hampson/8o3d06u0/ (https://jsfiddle.net/Ben_Hampson/8o3d06u0/)

How do I get the arrow keys to behave as they do in your demo?

https://paramquery.com/pro/demos/editing_custom (https://paramquery.com/pro/demos/editing_custom)
Title: Re: autocomplete arrow key
Post by: paramvir on July 20, 2017, 11:03:06 pm
Add editModel: { keyUpDown: false } to the column.

https://jsfiddle.net/8o3d06u0/16/
Title: Re: autocomplete arrow key
Post by: benh on July 21, 2017, 01:55:17 am
Perfect, thank you.