jeudi 10 janvier 2019

How to select the checkbox of the ag-grid dynamically

I'm using the ag-grid and the hierarchy of the grid looks like this, It's a single grid,

enter image description here

Case1: I'm able to uncheck the radio button when the checkbox in unchecked

Case 2: when I check Radio button without checking the checkbox, the checkbox needs to be checked which is not happening

How can I check the select box programmatically here? please provide the pointer to proceed

column definition for select box is ,

columnDefs: [
        {
          headerName: 'SELECT',
          headerClass: 'select-padding-style',
          headerCheckboxSelection: true,
          checkboxSelection: function (params) {
            if (params.data) {
              return true
            } else {
              return false
            }
          },
          field: '',
          name: 'checkbox',
          tooltipField: 'SELECT ALL',
          suppressMenu: false,
          suppressFilter: true,
          suppressMovable: true,
          width: 70
          }




Aucun commentaire:

Enregistrer un commentaire