This method sets and gets the replication method the binding is using. The valid
values are:
- full - construct all boxes for the data set (default)
- lazy - constructing boxes only when the view requires immediate presentation
of particular rows or data items
- recycle - attempts to keep box overhead and memory performance to an
absolute optimum by reusing boxes whenever possible in an aggressive
fashion.
function onSample()
{
var sourceBox = scene.getBoxById("mySourceBox");
var box = scene.getBoxById("myBox");
if (box && sourceBox)
{
var binding = box.getDataBinding("myBinding");
if (binding)
{
binding.elementSource = sourceBox;
binding.path = "value";
binding.bindMethod = "twoWay";
binding.replicationMethod = "full";
binding.connect();
}
}
}