AutoComplete Plugin: Update source per cell
AutoComplete Plugin: Update source per cell
I'm trying to implement the autocomplete plugin for editor https://editor.datatables.net/plug-ins/field-type/editor.autoComplete . I'm having trouble figuring out if there is a way to update the source selections per cell. It looks like you can get the "field" for the whole table which relates to the column of the table and update the source of ALL the rows for that field. However, I would like to do something like "the user updated a cell in a row, now use that new cell value in that row to update the source selection for the autocomplete in that specific row".
Is this possible?
Replies
Hi @keith.abramo ,
This thread might help, it's a recent diagnosis for jQueryUI's autocomplete. If not, this one might,
Cheers,
Colin
Hellow @colin ,
Neither of these links apply since I need my editor tables to do inline editing.
Is there a way to get at the underlying input element programmically for a cell when the editor is setup for inline editing? If I can do this, I can probably also update the autocomplete source adhoc when needed.
Hi @keith.abramo ,
You can get the
input
element by doing something like this.Hope that helps,
Cheers,
Colin
Perfect, Thanks!