EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: ub2709 on March 29, 2023, 11:41:13 PM



Title: Autosave in Datagrid
Post by: ub2709 on March 29, 2023, 11:41:13 PM
Good morning,
in addition to my question yesterday....
Is it possible und how can I implement a autosave feature in my datagrid when leaving a cell or a row without clicking on a "save" Button?.
Thank you


Title: Re: Autosave in Datagrid
Post by: jarry on March 30, 2023, 01:56:52 AM
Please listen to the 'onEndEdit' event and save data to the server.
Code:
$('#dg').datagrid({
    onEndEdit: function(index,row,changes){
        // save data to the server
    }
})