Check documentation for the latest version of dhtmlxSuite sync DHTMLX Docs


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

void sync(object target, [object rule] );
targetobjectthe object that method is assigned to
ruleobjectoptional, object with two attributes to enable filtering and sorting of DataStore


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