EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
March 16, 2025, 03:22:31 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
Save datagrid rows to database
Pages: [
1
]
« previous
next »
Print
Author
Topic: Save datagrid rows to database (Read 22202 times)
nbasicx
Newbie
Posts: 4
Save datagrid rows to database
«
on:
September 20, 2012, 08:26:41 AM »
Hi,
How can I save the entire datagrid rows to the database?
NB:
I want datagrid not editable datagrid.
Logged
anton.dutov
Newbie
Posts: 27
Re: Save datagrid rows to database
«
Reply #1 on:
September 24, 2012, 06:42:49 PM »
Something like that
Code:
var rows = tbl.datagrid('getRows');
$.each(rows, function(i, row) {
$.ajax("/api/data.balance.data/", {
type:'POST',
dataType: 'json',
data:row
});
});
Logged
nbasicx
Newbie
Posts: 4
Re: Save datagrid rows to database
«
Reply #2 on:
September 26, 2012, 02:38:20 AM »
thank you,it worked!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...