SMART datagrid v.1 > Classes > CheckCellRenderer

Back  Forward

DataLudi.CheckCellRenderer.threeStates  property

If this property value is true, when the cell value is undefined, it will not display the check mark. And, when change the value by clicking the mouse or typing space key, it will change the value after false as undefined value. 

If the cell value is not Boolean and this value is true, null or empty string will be displayed as undefined instead of false

Defaults to false.

Getter
function threeStates(): Boolean
Setter
function setThreeStates(value: Boolean)
Code -1
    grid.setColumns([{
        name: "Shipping",
        fieldName: "Shipping",
        renderer: {
            type: "check",
            editable: true,
            dblClickEditable: false,
            threeStates: true,
            editOnClick: true
        }
    },
    ...
    ]);
See Also
editable
spaceKey
editOnClick
Examples
Check Cell Renderer