binds 2 dataStore objects (changes in the master dataStore [creating, updating, deleting] reflect in the bound dataStore).
target | object | the object that method is assigned to |
rule | object | optional, 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