I need to modify and update the value from the parent component because I can’t update the header parameter value using row data.
I have a header grid component that takes a param of a ref, in the component I
export const CustomComponent = forwardRef((props, ref) => {
return <Checkbox ref={ref} {...props} />;
});
And in the parent component I gave
const ref = useRef(null)
HeaderParam {
ref: ref
}
//gridOptions = {rowData:..., columnDef...}
for some reason when I access it, it’s giving me undefined for the current object.
- Verified custom component is registered in the Grid
- Verified that useRef is working outside the Grid