Search code examples
javascriptangularag-gridag-grid-ng2

Deselect selected rows from ag grid angular


Is there any grid api to deselect ag-grid selected rows programatically? I'm trying to perform some operation on the selected row, basically an async operation , after which I need to deselect this row from the grid .


Solution

  • I used the grid api deselectAll function. It worked!

    this.gridOptions.api.deselectAll();