Check documentation for the latest version 6.0 of dhtmlxSuite sync DHTMLX Docs

sync

binds 2 dataStore objects (changes in the master dataStore [creating, updating, deleting] reflect in the bound dataStore).

void sync(object target, [object rule] );

Parameters

targetobjectthe object that method is assigned to
ruleobjectoptional, object with two attributes to enable filtering and sorting of DataStore

Example

var data1 = new dhtmlXDataStore({ url:"../data/data1.json", datatype:"json" });
var data2 = new dhtmlXDataStore({ datatype:"json" });
 
data2.sync(data1, {sort:true, filter:true});

Back to top