I'm creating a grid with multiple rows and inserting a radio button to each row as shown in below snapshot
The code snippet for the column definition of Radio button is as below,
columnDefs: [{
headerName: '',
field: '',
tooltipField: '',
suppressMenu: false,
suppressFilter: true,
suppressMovable: true,
suppressResize: true,
width: 200,
cellRendererFramework: this.ButtonCellRenderer
}]
ButtonCellRenderer = (params) => {
return (
<div style={{margin: 'auto', width: '100%', overflow: 'hidden'}}>
<div style={{display: 'inline-block'}}>
<RadioButtonGroup
name={params.data.bit_rate}
defaultSelected={this.state.selectedRadioButton}
debugger //eslint-disable-line
onChange={handleSelectionChange}
labelPosition={this.state.labelPosition}
>
<RadioButton label='' value='true' enabled='true' />
</RadioButtonGroup>
</div>
</div>
)
}
The issue I'm facing here is I'm not able to group the radio button into single RadioGroup hence I'm not achieving the mutual exclusive. Can you please suggest how to make it mutual exclusive .
