Due to can not use angular ng-model for checkboxes in cellrenderer function, I can not get their values. So I changed my code
return `<input type='checkbox' ${params.value.disable ? 'disabled' : ''} ${params.value.state ? 'checked' : ''} />`;
But I want to get values of them when I press the GET button. How can I get their values?
Note: I used someone plunker with my changes to save time: https://plnkr.co/edit/YjVlFYaOJJxS0mOIR6nu?p=preview
Your render function have an issue there is no value for
params.value.disableandparams.value.stateif you need to assign the data value to thecheckedattribute change it toparams.valueas belowYou can get a list of selected rows using
$scope.gridOptions.api.getSelectedRows().And if you can iterate through all the
rowNodesin the grid and and get its values use$scope.gridOptions.api.forEachNode(function(rowNode, index) { });For more details check Grid API