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

InitEdit is called after refresh datatable

$
0
0

I have a databales v1.13.4 with editor 2.0.5 to edit inline. I want the submit only on exit cell or enter key pressed. So, I click at a cell, change the cell value, press tab key to go to next cell and so on. Finally, when press the enter key, the submit to server occurs and the edition ends. The problem is that if I refresh datatable (table.ajax.reload()), it call "initEdit" event and the last cell edited, have now the focus and it is in edition. I tried call "editor.close()" at several events like "presubmit", "submitComplete", "enterKeyPressed" and it not works. Can you help me?

formOptions: {
    inline: {
        drawType: "none",
        submit: "allIfChanged"
    }
}

Viewing all articles
Browse latest Browse all 3800

Trending Articles