[REACT] [NEXTJS] Cannot access the search feature on Grid
Posted: Wed Apr 05, 2023 7:35 pm
Hello,
I was hoping I could get some guidance on implementing the grid search feature on NextJS. I am using the wrapper class as specified via https://bryntum.com/products/grid/docs/guide/Grid/integration/react/guide#loading-components-dynamically-with-next-js
However, when I follow the directions to implement the search via grid.features.search.search('steve');
it does not work as the search method is not accessible via this manner.
import { BryntumGrid } from "@bryntum/grid-react";
export default function Grid({ gridReff, searchTerm, ...props }) {
const grid = new BryntumGrid({ ...props, ref: gridReff });
if (searchTerm) {
grid?.feature.search.search(searchTerm);
}
return grid;
}