SMART datagrid v.1 > Classes > CellEditor

Back  Forward

DataLudi.CellEditor.textCase  property

The option which automatically changes the text to case. It is specified by TextInputCase constant. It will separately change and store the text entered by user in the value specified by this property. If this value is DEFAULT, it will follow the value specified by DataColumn.textInputCase

Defaults to TextInputCase.DEFAULT.

Getter
function textCase(): TextInputCase
Setter
function setTextCase(value: TextInputCase)
Code -1
    var columns = [{
        name: "col1",
        fieldName: "Data1",
        editor: {
            fontName: "Tahoma",
            fontSize: "12",
            textCase: DataLudi.TextInputCase.LOWER
        },
        ....
    }];
    grid.setColumns(columns);
Code -2
    $('#setLower').click(function () {
        var column = grid.columnByName('col1');
        column && column.setEditor({
            textCase: DataLudi.TextInputCase.LOWER
        });
    });
See Also
TextInputCase
DataColumn.textInputCase
Examples
Text Cell Editor