Title: datagrid get change bug Post by: bakoma 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}] Title: Re: datagrid get change bug Post by: Pierre 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). |