Hi,
In my code I directly added properties to the object returned from ListGrid.getEditValues, this allowed me to add extra information that should be retained during row editing of different rows.
I noticed that in 8.3 nightly something changed from a previous 8.1 build (november). In 8.3 the getEditValues always returns a clone of the original edit values object, so directly changing the clone does not change the original and maintained edit values object.
See these lines in getEditValues:
My question: is this on purpose that a shallow clone is returned? If so then I think it can make sense to mention this in the doc of the method (that the returned object can't be changed directly). If not, does it make sense to change this and return the original/real edit values object?
gr. Martin
In my code I directly added properties to the object returned from ListGrid.getEditValues, this allowed me to add extra information that should be retained during row editing of different rows.
I noticed that in 8.3 nightly something changed from a previous 8.1 build (november). In 8.3 the getEditValues always returns a clone of the original edit values object, so directly changing the clone does not change the original and maintained edit values object.
See these lines in getEditValues:
Code:
var values = isc.addProperties({},this._getEditValues(valuesID, colNum)); if (values != null) { delete values[this.recordRemovedProperty]; } return values;
gr. Martin
Comment