Using inline editor and keytable with a function in onblur breaks keytable
Using inline editor and keytable with a function in onblur breaks keytable
Hi
I am using the following function to update the DB on blur:
$('#tblFinancials').on('key-focus', function (e, datatable, cell) {
mytable_editor.inline(cell.index(), {
onBlur: function (cell) {
//save to db
updateFinancialValue();
}
});
});
But then keyTable doesn't work as expected (with tab) and only works with enter key pressed. It also doesnt set focus to the next row if working on the last column.
If I use the following:
$('#tblFinancials').on('key-focus', function (e, datatable, cell) {
mytable_editor.inline(cell.index(), {
onBlur: 'submit'
});
});
Then keyTable works as expected but I cant update the DB with my own function.
Please help
Answers
I solved my issue. For anyone who this might help:
I use the editor's ajax method which i wasn't using before. silly me.
Thanks for posting back. Great to hear you've got it working now.
Allan