SMART datagrid v.1 > Classes > EditOptions
Callback function which returns the values of data cells to the string which will be copied to clipboard.
It takes precedence over the conversion format properties like EditOptions.copyDatetimeFormat and useStyleFormats setting. If specify ValueColumn.copyCallback of column, this property will be ignored.
Defaults to null.
grid.setOptions({
edit: {
copyCallback: function (row, column, field, value) {
if (field.fieldName() == 'amount') {
return '$' + value;
}
return value;
});
}
});
grid.setEditOptions({
copyCallback: function (row, column, field, value) {
if (field.fieldName() == 'amount') {
return '$' + value;
}
return value;
});
});
grid.copyOptions().setCopyCallback(function (row, column, field, value) {
if (field.fieldName() == 'amount') {
return '$' + value;
}
return value;
});