We’re experimenting with the samples to see if they fit our use cases.
We’re trying to use the .group function on a BryntumGrid instance:
const gridRef = useRef<BryntumGrid>(null);
// GridBase.group signature:
(method) GridBase.group(
levels: (string | Column | ((model: Model) => any))[]
): Promise<void>
// “Transforms the data according to the supplied levels.”
// This line:
gridRef.current?.instance.group(["key"]);
// results in:
TypeError: gridRef.current.instance.group is not a function
Is there an issue with the instance types, or are we calling it incorrectly?