I have got a function "handleGridRowsUpdated", I want to access the event in this function.
I've tried passing the event to this function in various ways and also Googled it but didn't get any success.
Below is the code snippet:
class App extends React.Component {
constructor(props) {
super(props);
this.handleGridRowsUpdated = this.handleGridRowsUpdated.bind(this);
}
handleGridRowsUpdated({ fromRow, toRow, updated }) {}
render() {
return (
<ReactDataGrid
ref={node => (this.grid = node)}
onGridSort={this.handleGridSort}
enableCellSelect={true}
columns={this.getColumns()}
rowGetter={this.getRowAt}
rowsCount={this.getSize()}
onGridRowsUpdated={this.handleGridRowsUpdated}
toolbar={<Toolbar onAddRow={this.handleAddRow} enableFilter={true} />}
onAddFilter={this.handleFilterChange}
getValidFilterValues={this.getValidFilterValues}
onClearFilters={this.handleOnClearFilters}
enableRowSelect={true}
rowHeight={50}
minHeight={600}
rowScrollTimeout={200}
/>
);
}
}
I'm new to react, any help would be greatly appreciated.