Using “inline_edit” mode how to save data when the cell loses focus

this is my first time use Gantt
I found this sample “https://docs.dhtmlx.com/gantt/samples/07_grid/11_inline_edit_basic.html

after modified record, how to save the data when the cell loses focus ?

I googled for a long time, only some information about “onLightboxSave” ,please help!

Hello,
By default, Gantt saves the new value if you click on an empty space in the timeline or in the grid.
There is no built-in feature to save the data when the inline editor loses focus. But you can implement it by using Gantt API and Javascript.
The easiest way for that would be to get the input element in the onEditStart event handler and attach the blur event. To save the new value, you can use the gantt.ext.inlineEditors.save(); command.
The following snippet demonstrates how it works:
http://snippet.dhtmlx.com/fa9a8f985
You can read more about inline editors in the following articles:
https://docs.dhtmlx.com/gantt/desktop__inline_editors_ext.html
https://docs.dhtmlx.com/gantt/desktop__inline_editing.html

1 Like