SMART datagrid v1.4 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.updateByCell  property

true면 수정 중인 행에서 개별 데이터셀 입력이 끝날 때 행 편집을 완료한다. 

그리드는 기본적으로 단위로 사용자 입력을 완료하거나 취소 시킨다. 같은 행의 여러 셀들을 입력하고 방향키나 마우스로 행 이동을 시도해서 행 편집을 완료하거나, Esc 키를 입력해서 행 전체의 입력을 취소하게된다. GridBase.commit을 호출하거나 GridBase.cancel을 호출해서 각각 완료하거나 취소할 수도 있다. 하지만, 이 속성이 true로 지정되면 Enter 키를 누르거나 다른 셀로 이동해서 데이터셀 입력을 완료할 때 행 편집도 동시에 완료된다. 

추가 중인 행에서 셀 단위로 커밋하기 위해서는 insertByCelltrue로 지정한다. 또, pasteByCell을 동일하게 지정해서 붙여넣기 시에도 동일한 UI를 제공할 수 있다. 

기본값은 false.

Getter
function updateByCell(): Boolean
Setter
function setUpdateByCell(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            updateByCell: true,
            insertByCell: true
        }
    });
Code -2
    grid.setEditOptions({
        updateByCell: true,
        insertByCell: true
    });
Code -3
    grid.editOptions().setInsertByCell(true);
See Also
insertByCell
pasteByCell
GridBase.commit
GridBase.cancel
updatable
Examples
편집
Undo & Redo