Hello,
I created a special cell in the grid. When this cell I created is clicked, the onSelectionChange event in the grid does not work.
But it works when I create a normal cell.
In the example below
When I click on the name and surname cells, the checkbox in the grid is marked, but when I click on the Full Name cell, the checkbox in the grid is not marked.
I created a special cell in the grid. When this cell I created is clicked, the onSelectionChange event in the grid does not work.
But it works when I create a normal cell.
In the example below
When I click on the name and surname cells, the checkbox in the grid is marked, but when I click on the Full Name cell, the checkbox in the grid is not marked.
<Grid
data={data.map(item => ({
...item,
[SELECTED_FIELD]: selectedState[idGetter(item)]
}))}
style={{height: '400px'}}
dataItemKey={DATA_ITEM_KEY}
selectedField={SELECTED_FIELD}
selectable={{enabled: true, drag: false, cell: false, mode: 'multiple'}}
onSelectionChange={this.onSelectionChange}
onHeaderSelectionChange={this.onHeaderSelectionChange}
>
<Column field={SELECTED_FIELD} width="50px"
headerSelectionValue={data.findIndex(item => !selectedState[idGetter(item)]) === -1}/>
<Column field="name" title="Name" width="300px"/>
<Column field="surname" title="Surname" width="300px"/>
<Column width="100px" title="Full Name" cell={(props) => (
<td>
<div>{props.dataItem.name + ' ' + props.dataItem.surname}</div>
</td>
)}/>
</Grid>