Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3744

cell().focus() partially work

$
0
0

Hi
I have an inline table editing
I do a select on the last row and then focus the Field_4 in footerCallback.

oTable.row("#row_999").select();
oTable.cell("#row_999",":eq(4)").focus();

This row is a dummy line send by the server for new entry.

It is selected, "#row_999", and the cell 4 is highlighted.
An entry box is showed but the cursor is no where to be found.
I added

  editor.field("Field_4").input().on('focus', function () {
    jQuery(this).select();
    console.log("Field_4 focus");
  });

witch will fired only if I click on the field

Do I have something else to do to have the cursor in the inner-editor ready for input ?

Thanks


Viewing all articles
Browse latest Browse all 3744

Trending Articles