0

I working on inline edit using ignite-ui-angular grid and it highlights all rows when I select a row and also save/cancel prompt panel appears in wrong rowenter image description here. Their example works but I am customizing column so I think that maybe the problem but not sure how to fix it.

wil
  • 853
  • 2
  • 10
  • 24

1 Answers1

0

As stated in the Grid Row Editing topic, 'primaryKey' is required for row editing operations.

<igx-grid 
  [data]="data" 
  [primaryKey]="'ProductID'" 
  width="100%" 
  height="500px" 
  [rowEditable]="true"
  ></igx-grid>

Having in mind that, I assume that in your scenario ‘primaryKey’ is set to a column that is not existing in the underlying data source of the igxGridComponent.

Please verify that the primary key is set correctly.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Martin
  • 83
  • 1
  • 6
  • thanks Martin, I had the wrong primary key value. once I restarted the site, it seems to work now – wil Feb 03 '21 at 14:18