3.2.0

populating grid with js array - can i clear the array ?

var myText = [
["aaa", "111", "xxx"],
["bbb", "22", "zzz"]
];

var obj = new AW.UI.Grid;
obj.setCellText(myText);
obj.setColumnCount(3);
obj.setRowCount(2);

document.write(obj);

at this point can i clear the array, like this?
myText.length = 0;

or do i have to keep it around?

sorry its kind of basic, but if i have a large dataset, i am wondering if it will make any performance difference?
mango
July 1,
The grid does not create a copy of your array - it just keeps a reference, so you should not modify it unless you want to change the displayed data.
Alex (ActiveWidgets)
July 9,

This topic is archived.

See also:


Back to support forum