- updateExistingCellValue action had wrong parameters and behavior was bugged.
- Use GRID as parameter instead of gridId
- Use dataId as parameter instead of rowIndex OLD:
dispatch(DatagridActions.updateExistingCellValue(id, rowIndex, keyPath, value))
```javascript
NEW:
dispatch(DatagridActions.updateExistingCellValue(grid, dataId, keyPath, value))
- Nonce must be provided with NonceProvider:
import { NonceProvider } from 'react-select';
const nonce='nonce_hash_here';
<NonceProvider nonce={nonce}>
<App />
</NonceProvider>- Cell values are rendered based on componentType instead of valueType. Make sure you have correct componentType set.
- componentType select and multiselect values are now rendered automatically from selectOptions. You don't need custom valueRender anymore in basic cases.
Switch valueType and componentType of currency type:
OLD:
{
valueType: 'currency',
componentType: 'float',
}NEW:
{
valueType: 'float',
componentType: 'currency',
}React 15 is no longer supported
- Make
GRIDobject that containsidandidKeyPathattributes. - Pass it to
Datagridcomponent asgridprop instead ofidandidKeyPathprops.
note: If your grid uses columnKey prop, you can remove it and use grid object's idKeyPath instead.
OLD:
<Datagrid
columnKey={['id']}
id="myGrid"
columns={columns}
/>NEW:
const GRID = {
id: 'myGrid',
idKeyPath: ['id'],
};
<Datagrid
grid={GRID}
columns={columns}
/>- Update action parameters, the first parameter is always new
GRIDobject. - Some actions needs
columnsarray as parameter as well. idandidKeyPathparameters are removed.- Check the parameters from DatagridActions.
OLD:
this.props.setData('myGrid', data);NEW:
this.props.setData(GRID, columns, data);