SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.editCallback  property

Callback function which is called just before committing cell editing. 

function (index:CellIndex, editResult:Object);

In editResult, it contains value which is converted for text and data type entered by user. If change value value within this callback function, this value will be transferred to the row. 

Defaults to null.

Getter
function editCallback(): Function
Setter
function setEditCallback(value: Function)
Code -1
    column.setEditCallback(function (index, editResult) {
        editResult.value = '$' + editResult.value;
    });
See Also
Cell Editing Overview
onEditCommitted
onEditCellUpdated
Examples
Cell Editing