sync behaviour using parse($$("...").data.serialize());

Hello,

I have 2 datatables: datatableA, datatableB. datatableB data is loaded with $$(“datatableB”).parse($$(“datatableA”).data.serialize());

I then alter datatableB data with $$(“datatableB”).updateItem(row, tmp);

After this operation, datatableA data is also altered. Same behaviour if I use .data.importData. Same behaviour if I use .data.sync. Same behaviour if datatableB modiciations are done with javascript debugger.

My goal is to be able to load datatableB with datatableA data, alter datatableB, reload datatableB with “original” datatableA data.

Any help would be appreciated. Kind regards.

Hello,

If you make a copy of the datatableA data before parsing, the data remains unchanged:

$$("gridb").parse(webix.copy($$("grida").serialize()));

http://webix.com/snippet/f6d92a58

Hi,
Thank you for your prompt feedback.
It works great! Thank you.