Hi
We have a grid with two dropdown columns. Is there an easy way to add a custom validation so that certain combinations of dropdown values are not allowed and that styles the error message similar to a percent column:
Thanks
Ben
Support Forum
Hi,
You should just provide available items for the dropdown column via items or store.
You may filter available items in beforeCellEditStart event or from any other place.
This is the default behavior. You may check in this demo
https://www.bryntum.com/examples/grid/celledit/
You should just provide available items for the dropdown column via items or store.
You may filter available items in beforeCellEditStart event or from any other place.
This is the default behavior. You may check in this demo
https://www.bryntum.com/examples/grid/celledit/
Hi!
To show error tip you could use tooltip with this config.
Provide record id and field name for grid.getCell() method
https://www.bryntum.com/docs/gantt/#Grid/view/Grid#function-getCell
To show error tip you could use tooltip with this config.
Provide record id and field name for grid.getCell() method
https://www.bryntum.com/docs/gantt/#Grid/view/Grid#function-getCell
const toolTip = new Tooltip({
cls : 'b-field-error-tip',
align : 'l-r',
forElement : grid.getCell({ id : 1, field : 'name' }),
html : `Error in cell`
});
toolTip.show();