Docs
API
  • insert(rowIndex: Number, rowData: Object)

    Inserts data item.

    Example

    
    grid.insert(1, {
      id: 25,
      name: 'John',
      someProperty: 1
    });
    

    insert(rowData: Object)

    Inserts data item on row with index 0.

    Example

    
    grid.insert({
      id: 25,
      name: 'John',
      someProperty: 1
    });
    

    insert(data: Array)

    Inserts data items on row with index 0.

    Example

    
    grid.insert([{
      id: 25,
      name: 'John',
      someProperty: 1
    }]);
    

    insert(rowIndex: Number, data: Array)

    Inserts data item on row with index index.

    Example

    
    grid.insert(1, [{
      id: 25, 
      name: 'John',
      someProperty: 1
    }]);
    

    See also

    Method add
    Method addChild