EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roni on August 01, 2015, 02:45:57 PM



Title: save datagrid to database
Post by: roni on August 01, 2015, 02:45:57 PM
How can I save the entire datagrid rows to the database with singgle button? i am using datagrid not edatagrid.


Title: Re: save datagrid to database
Post by: jarry on August 02, 2015, 05:42:56 PM
You can call 'getRows' method to get all the datagrid rows and then post them to server.
Code:
var rows = $('#dg').datagrid('getRows');
// save rows...