Igniteui-angular: [IgxGridComponent] Method for entering edit mode?

Created on 10 Mar 2020  路  2Comments  路  Source: IgniteUI/igniteui-angular

Question

Looking at the docs https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxgridcomponent.html I can see there's a method endEdit, but I can't find a method for start editing or toggling edit on a specific cell.

I want to create a new row on the grid and toggle edit mode for better UX.

  • igniteui-angular version: 9.0.1
question

Most helpful comment

Having the cell you need to edit you can call setEditMode method over the cell. Additionally to allow editing of the cell you should focus the cell. Finally you may use code like this:

const cell: IgxGridCellComponent;
cell.setEditMode(newValue);
cell.focused = true;

All 2 comments

Having the cell you need to edit you can call setEditMode method over the cell. Additionally to allow editing of the cell you should focus the cell. Finally you may use code like this:

const cell: IgxGridCellComponent;
cell.setEditMode(newValue);
cell.focused = true;

Thanks for the help @wnvko.

Was this page helpful?
0 / 5 - 0 ratings