Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
IgxGridComponent add dynamic column
posted

Hi,

I want to add row action column to IgxGridComponent before it is rendered, my requirement is not to use ngFor.

I have added my custom directive on <igx-grid> which will be adding this dynamic column.

Thanks in Advance.

I tried:

let actionColumn = new IgxColumnComponent(undefined, this.gridRef.cdr);
actionColumn.header = "Actions";
actionColumn.field = "Actions";
this.gridRef.columns.push(actionColumn);
Parents Reply Children
No Data