SMART datagrid v.1 > Classes > CheckCellRenderer

Back  Forward

DataLudi.CheckCellRenderer.editOnClick  property

If editable is true and this property is true, even if click the cell which is not a focused cell, it will still change the value by changing into edit state immediately. If the value is false, you should change the cell which will be edited as Focused Cell by clicking the mouse. 

Defaults to false.

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