See the demo from the answer which uses select2, which is more powerful as jQuery UI autocomplete. See the demo from more old answer which build dynamically the source for jQuery UI autocomplete and formatter: "select"
for using in the searching toolbar.
UPDATED: One more old demo uses the same version 3.4.3 of select2 in inline editing.