EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: stephenl on August 26, 2019, 12:57:00 AM



Title: Row Editing in DataGrid
Post by: stephenl on August 26, 2019, 12:57:00 AM
Hello

I'm looking for an example of "Row Editing in DataGrid" interfacing with a MySQL database

Does anyone know if such an example exist ?

Thank you





Title: Re: Row Editing in DataGrid
Post by: jarry on August 28, 2019, 02:13:16 AM
If you want to batch update the changed rows to the database, try this code.
Code:
var rows = $('#dg').datagrid('getChanges');
var data = JSON.stringify(rows);
$.post(yoururl, {data:data}, ...);