If a cell has the focus and the cell is for a column that is marked as non-editable or the editCellStarting returns false for any reason, the keyboard navigation(Tab Click) no longer works by skipping to the next editable cell in the grid.
Angular version: 17.0.5
Hello,
Thank you for reaching out regarding the described behavior you're experiencing with the igx-grid component's keyboard navigation.
I have been looking into your question and I attempted to reproduce the described behavior in a sample application, but everything seems to be working correctly. Here is the sample I created for your reference: Sample Link.
In this sample, I have set up an igx-grid with some columns marked as editable and others as non-editable:
<igx-grid #grid [data]="data" [primaryKey]="'ProductID'" width="100%" height="650px"> <igx-column field="ProductID" header="Product ID"></igx-column> <igx-column field="ProductName" header="Product Name" [dataType]="'string'" [editable]="true"></igx-column> <igx-column field="UnitPrice" header="Unit Price" [dataType]="'string'" [editable]="false"></igx-column> <igx-column field="QuantityPerUnit" header="Quantity Per Unit" [dataType]="'string'" [editable]="true"></igx-column> <igx-column field="ReorderLevel" header="Reorder Level" dataType="number" [editable]="true"></igx-column> </igx-grid>
Steps to Reproduce
This behavior is as expected. Editable cells are focused sequentially while non-editable cells are skipped. This functionality works correctly in the latest version of Ignite UI Angular.
The described scenario could be observed here:
Versions Used
The sample uses the specific versions you mentioned:
"@angular/animations": "^17.0.0", "@angular/cdk": "^17.0.0", "@angular/common": "^17.0.0", "@angular/compiler": "^17.0.0", "@angular/core": "^17.0.0", "@angular/forms": "^17.0.0", "@angular/platform-browser": "^17.0.0", "@angular/platform-browser-dynamic": "^17.0.0", "@angular/router": "^17.0.0", "igniteui-angular": "^17.0.5"
Request for Additional Information
If you are still experiencing issues, please provide additional details to help diagnose the problem:
This additional information will enable me to better understand the context and potentially identify the root cause of the issue you are experiencing.
Regards,
Georgi Anastasov
Entry Level Software Developer
Infragistics