reenakoshta
reenakoshta
WWindmill
Created by reenakoshta on 8/17/2023 in #help
enable checkbox based on column value in ag-grid
I figured it out like this by using ag-grid api. const grid_api = getAgGrid('c').columnApi.columnModel.gridOptionsWrapper.gridOptions.api const rows = grid_api.getSelectedRows() const nodesToSelect = []; grid_api.forEachNode((node) => { if (node.data && node.data.flag === true) { nodesToSelect.push(node); node.setSelected(true); } });
3 replies