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

InlineCreate after inline edit a cell

$
0
0

I have a datatables with this Options:

formOptions: {
            inline: {
                drawType: "none"
            }
        }

If I click at a cell (lets call cellA), it converts to an input and I can change the content. Next I press enter key and I call "editor.submit()". The row seams like the edition mode was ended. After this I have a button that adds a new line, calling this:

editor.inlineCreate("start");

It draw the new row with all cells in edition mode, but when I start to write at one of these cells, the row disapears and the focus of the editor goes to the cell that I was editing before, cellA. It seams that the first edition its not finished correctly. Otherwise, If I add the new row after the refresh of datatable, I can write all fields and the new row is submitted to the server. So my problem is adding new now after edit an existing one.
Thank you.


Viewing all articles
Browse latest Browse all 3744

Trending Articles