SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.errorLevel  property

The Error Level which will be set if validations check about this column is failed when committing cell editing or row editing. 

You can check error contents through error property. The error and error level which have been set can be displayed in a special state when drawing the corresponding column cell of editing state. 

Defaults to ValidationLevel.IGNORE.

Getter
function errorLevel(): ValidationLevel
Setter
function setErrorLevel(value: ValidationLevel)
Note
Code -1
    grid.onCurrentChanged = function (grid, newIndex) {
        // Display the error state of column which has the focus of editing row in other place.
        if (grid.isRowEditing()) {
            var col = newIndex.column;
            var level = col.errorLevel();
            $('#error').val(level != DataLudi.ValidationLevel.IGNORE ? col.error() : "");
        }
    };
See Also
error
validations
EditValidation
Cell Editing Overview
Examples
Cell Editing