AutoComplete Plugin: Update source per cell

AutoComplete Plugin: Update source per cell

keith.abramokeith.abramo Posts: 36Questions: 6Answers: 0

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

  • colincolin Posts: 6,526Questions: 0Answers: 1,123

    Hi @keith.abramo ,

    This thread might help, it's a recent diagnosis for jQueryUI's autocomplete. If not, this one might,

    Cheers,

    Colin

  • keith.abramokeith.abramo Posts: 36Questions: 6Answers: 0

    Hellow @colin ,

    Neither of these links apply since I need my editor tables to do inline editing.

  • keith.abramokeith.abramo Posts: 36Questions: 6Answers: 0

    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.

  • colincolin Posts: 6,526Questions: 0Answers: 1,123

    Hi @keith.abramo ,

    You can get the input element by doing something like this.

    Hope that helps,

    Cheers,

    Colin

  • keith.abramokeith.abramo Posts: 36Questions: 6Answers: 0

    Perfect, Thanks!

Sign In or Register to comment.