SMART datagrid v1.4 > Classes > GridBase
DataLudi.GridBase.onValidateRow event
행 편집을 완료할 때 발생한다.
이 이벤트 핸들러 내에서 throwValidationError 호출로 예외를 발생시키면 편집 완료가 중단되고, 설정에 따라 에러 메시지가 표시된다.
이 이벤트가 발생하기 전에 셀 별로 onValidateCell 이벤트가 발생한다.
function onValidateRow (grid: GridBase, row: GridRow, inserting: Boolean, values: Object);
- Returns
- Void
- Parameters
- grid - GridBase.
- row - GridRow.
편집 행.
- inserting - Boolean.
행 추가 중이면 true
- values - Object.
편집행의 셀 값들이 포함된 Json 객체.
Code -1
grid.onValidateRow = function (grid, row, inserting, values) {
DataLudi.throwValidationError(DataLudi.ValidationLevel.ERROR, 'message');
});
- See Also
- onValidateCell
- throwValidationError
- ValidationLevel
- DataColumn.validations
- EditValidation
- Examples
- Cell Editing
- Edit Events
- Edit Keys
- 행 수정
- 행 추가
- 행 삭제