Hi,
I am using the KendoReact grid with checkbox selection as outlined here: https://www.telerik.com/kendo-react-ui/components/grid/selection/#toc-customizing-the-selection
I was hoping for some help on the best way to selectively hide the checkbox for certain rows based on row data while still using default Grid selection behaviours i.e. Grid selectedField, onSelectionChange and onHeaderSelectionChange.
I know that I can use a custom cell template to selectively hide or show the checkbox, but if I do this is there any way to still use the Grid onSelectionChange handler for the checkboxes that are shown? Or do I have to use the Grid onItemChange event to change the selected field instead?
Kind regards,
David
Hi,
I believe I may have figured it out. It looks like you can just call the selectionChange event on GridCellProps from the custom cell editor i.e.
const handleChange = (e: CheckboxChangeEvent) => { props.selectionChange!({ syntheticEvent: e.syntheticEvent }); };
Is this a suitable solution?
Kind regards,
David