this.edit.apply(); var i = inIndex || -1; if(i<0){ i = this.selection.getFirstSelected() || 0; } if(i<0){ i = 0; } this.model.insert(inRowData, i); this.model.beginModifyRow(i); // begin editing row // FIXME: add to edit for(var j=0, c; ((c=this.getCell(j)) && !c.editor); j++){} if(c&&c.editor){ this.edit.setEditCell(c, i); this.focus.setFocusCell(c, i); }else{ this.focus.setFocusCell(this.getCell(0), i); }