EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 10:47:33 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
>
Bug Report
>
datagrid get change bug
Pages: [
1
]
« previous
next »
Print
Author
Topic: datagrid get change bug (Read 6763 times)
bakoma
Newbie
Posts: 13
datagrid get change bug
«
on:
May 15, 2018, 12:54:05 PM »
Suppose you have an editable datagrid with id="dg"
you get changes this way
all changes:
var changes = $('#dg').datagrid('getChanges');
all inserts:
var c = $('#dg').datagrid('getChanges', 'inserted');
all updates:
var u = $('#dg').datagrid('getChanges', 'updated');
all deletes:
var d = $('#dg').datagrid('getChanges', 'deleted');
supposedly changes=c+u+d, but this is not always true unfortunately.
get the bug this way:
you first edit this row (say myRow)
and then delete this row
then you would think:
c=[]
u=[]
d=[{myRow}]
actually
c=[]
u=[{myRow}] <------------problem--------------
d=[{myRow}]
Logged
Pierre
Sr. Member
Posts: 439
Re: datagrid get change bug
«
Reply #1 on:
May 16, 2018, 07:21:59 AM »
You can create simple example using online editor, like
http://code.reloado.com/oeasyrik1/2/edit#source
(this is just example, you can put your own code there).
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...