SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.append  method

Request to append a new row after the last Row

If row appending is started without any issues, edit row will be displayed in the grid and will return true. If EditOptions.appendable is true and when the focus is in the last row, the user can type Down Key to start row appending. When inserting a new row in the existing row location, he can type Insert key. 

onInserting event will be fired just before start appending, and onInsertStarted event will be fired after it is started. 

function append (): Boolean;
Returns
Boolean
Code -1
    $('#btnAppend').click(function () {
        if (grid.append()) {
            console.log('Row Appending has been started.');
        } else {
            console.log('You cannot append rows.');
        }    
    });
See Also
insert
edit
EditOptions.appendable
onInserting
onInsertStarted
Examples
Row Inserting
Row Updating