Looking at the core Field, editTemplate function is defined as:
editTemplate: function(value, item) {
this._value = value;
return this.itemTemplate(value, item);
}
which is all well and good.
However, all the concrete fields extending from it override that function and discard the item object. Following example is from SelectField:
editTemplate: function(value) {
if(!this.editing)
return this.itemTemplate(value);
var $result = this.editControl = this._createSelect();
(value !== undefined) && $result.val(value);
return $result;
}
This means if I have a "perfect storm" combination where a field is non-editable and references other item properties to render itemTemplate() it will break the row-editing functionality because item = undefined.
Looking at the core Field,
editTemplatefunction is defined as:which is all well and good.
However, all the concrete fields extending from it override that function and discard the
itemobject. Following example is from SelectField:This means if I have a "perfect storm" combination where a field is non-editable and references other
itemproperties to renderitemTemplate()it will break the row-editing functionality becauseitem = undefined.