SMART datagrid v.1 > 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
行插入
行修改