EasyUI Forum
April 25, 2024, 06:21:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Autosave in Datagrid  (Read 920 times)
ub2709
Newbie
*
Posts: 3


View Profile
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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
    }
})
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!