Skip to content

Autocomplete with primitive value and computed label #1268

Answered by ghiscoding
zewa666 asked this question in Q&A
Discussion options

You must be logged in to vote

hello, the Autocomplete lib that I use since removing jQuery/jQueryUI is this lib kraaden autocomplete, it usually works with pair only but there is also the render method you can use to change the default display, for that it's better to consult both the 3rd party lib docs and Angular-Slickgrid Autocomplete Wiki to see how to use external methods, for example this doc section shows how to modify the render.

In order to show the name instead of the owner_id I'd have to make the col an object with key/value pair and set dataKey and labelKey but there is no other way to keep it as number and still have the name rendered right? If not, my approach for that would be a custom formatter which …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zewa666
Comment options

Answer selected by zewa666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants