I want to include a multiline textarea in a grid. I've tried to do that like this sample, by adding an 'editor' property to a kendoGrid columns field, and defining an initializer function.
columns: [
field: "cont"
editor: textEditorInitialize
]
var textEditorInitialize = function(container, options) {
$('<textarea style="width: ' + container.width() + 'px;height:' + container.height() + 'px" />')
.appendTo(container);
};
The editor does not quite work as expected. A functional edit box is added to the grid, but in edit mode the field value is not bound, the edit box is empty.
After completing the edit, no change event is triggered, so the update method of the datasource is not invoked.
What could be wrong?
columns: [
field: "cont"
editor: textEditorInitialize
]
var textEditorInitialize = function(container, options) {
$('<textarea style="width: ' + container.width() + 'px;height:' + container.height() + 'px" />')
.appendTo(container);
};
The editor does not quite work as expected. A functional edit box is added to the grid, but in edit mode the field value is not bound, the edit box is empty.
After completing the edit, no change event is triggered, so the update method of the datasource is not invoked.
What could be wrong?