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
45
Tab-interaction in igx-grid edit-Mode in case of column's [editable] is depending on data
posted

Hi

I have a column(ContactDate) in an igx-grid which is editable just for part of rows.

To achieve that I use the following code:

    <igx-column field="ContactDate" [editable]="true">
        <ng-template igxCell let-cell="cell" let-val>
          {{cell.value}}
        </ng-template>
        <ng-template igxCellEditor let-cell="cell" let-value>
          <span *ngIf="cell.rowData.Archived">{{cell.value}}</span>
          <igx-date-picker
            *ngIf="!cell.rowData.Archived"
            [(ngModel)]="cell.rowData.ContactDate"
          ></igx-date-picker>
        </ng-template>
      </igx-column>

In case of edit-mode of the previous cell if 'tab' is pressed my 'ContactDate'-column gets focused.

How to prevent that for cases when the column for the row is not editable?

I use the version 11.1.4

Working example: stackblitz.com/.../github-srbuis-dpvliy