SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.append  method

마지막 다음에 새로운 행 추가를 요청한다. 

문제없이 행 추가가 시작되면 그리드에 편집 행이 표시되고 true를 리턴한다. EditOptions.appendabletrue이고 마지막 행에 포커스가 있을 때, 사용자는 아래 방향키를 입력해서 행 추가를 시작할 수 있다. 기존 행 위치에 새로운 행을 삽입할 때는 Insert키를 입력한다. 

추가가 시작되기 직전에 onInserting 이벤트가 발생하고, 시작된 후 onInsertStarted 이벤트가 발생한다. 

function append (): Boolean;
Returns
Boolean
Code -1
    $('#btnAppend').click(function () {
        if (grid.append()) {
            console.log('행 추가가 시작됐습니다.');
        } else {
            console.log('행을 추가할 수 없습니다.');
        }    
    });
See Also
insert
edit
EditOptions.appendable
onInserting
onInsertStarted
Examples
Row Inserting
Row Updating