1

In my column defs i have this:

 {
        headerName: 'All',
        field: 'all',
        headerCheckboxSelection: true,
        headerCheckboxSelectionFilteredOnly: true,
        checkboxSelection: true,
        width: 40,
        maxWidth: 40,
        suppressFilter: true,
        cellStyle: params => {

          return { textAlign: 'center' }

        }
      },

But when i select by checkbox i dont get selected rows.Any suggestion how can i do that, to make select by checkbox same as row selection?

Im using this from ag grid documentation: https://www.ag-grid.com/javascript-grid-selection/

4
  • try gridApi.getSelectedRows() Commented Oct 5, 2019 at 10:26
  • but how can i trigger that event when user click checkbox ? on every click on checkbox i need to catch that and do something with that Commented Oct 5, 2019 at 10:27
  • try grid callback event - (rowSelected)="rowSelected()". Refer - ag-grid.com/javascript-grid-events Commented Oct 5, 2019 at 10:31
  • thats it ... tnx :) Commented Oct 5, 2019 at 10:36

1 Answer 1

2

From ag-grid Grid Events API

rowSelected Row is selected or deselected.

Example given:

(rowSelected)="rowSelected()"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.