Angular Ag-Grid: Undo selected row changes on button click

后端 未结 2 1946
-上瘾入骨i
-上瘾入骨i 2020-12-02 01:14

Application built on Angular and Javascript.

AG-Grid editable records having 1st column as Checkbox. After making any changes say on 5 records, after selecting check

2条回答
  •  星月不相逢
    2020-12-02 01:53

    There are multiple events which ag-Grid provides on cell editing for you to utilize for example: by using which() method on the event would tell you that which cell is being targeted and you can create a map of an old value and new value with it. If the button is clicked you can check the rows and accordingly reset the values of the cell.

提交回复
热议问题