cell().focus() partially work
cell().focus() partially work
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
This discussion has been closed.
Answers
cell().focus()
doesn't active the editing itself - you'd need to call theinline()
method to activate inline editing. Thecell().focus()
method is specific to KeyTable and just sets its focus.Allan
Hi Allan
I have the following in the set-up
And the following code for activation
I based my edit on the Editor example Tab between columns
Could you give me a link to the page please? I'll try to put a demo together locally in the next few days, but I suspect the
keys
option might be causing part of the issue. It won't activate editing like that.Allan