EasyUI Forum
April 25, 2024, 07:17:55 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: Row Editing in DataGrid  (Read 2923 times)
stephenl
Newbie
*
Posts: 30


View Profile
« 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



Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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}, ...);
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!