allows you to sync two copies of data (all or just a part of it) from one DataCollection to another

void sync(object source, [function filter,boolean silent] );
sourceobjectthe object that the method is assigned to
filterfunctionthe filtering function
silentbooleanif you set the parameter to true, the object won't be repainted after synchronization


//full copy
//partial copy          
$$('dview').data.sync(data, function(){
    return data.year > 1994;

Related samples

See also
Back to top