Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Can't display grid using functional component
posted

Hi,

I have problems showing the grid results using functional components. There are no problems with grid when the component is implement with class component. Is there any specific thing which have to take care with IgrGrid when it is implemented with functional components.

The data is loaded into the Grid component and it is in the correct format. But it is not rendering at all. 

Also the logic in the functional component version seems to be equal to the one in class component version.

Thanks you,

Tihomir

Parents
  • 2680
    Offline posted

    Hi Tihomir,

    There are a few demos in our documentation, where functional components are used and the IgrGrid is rendering as expected. The React Grid Context Menu is one for example. Please, check it out, open it in CodeSandbox and compare any discrepancies between it and your own app that may be preventing the grid from rendering properly.

    Additionally, I am wondering if there are any errors in the console when running the app?

    Finally, if you are still having difficulties getting started with the IgrGrid in a functional React component, please, provide additional details on your configuraiton, such as specific React and Ignite UI for React versions, what grid features are used, etc. Ideally, you could try and reproduce the behavior in an isolated sample, containing only the minimum required code, so that we can further look into it.

    Please, keep me posted on your progress.

    Best regards,
    Bozhidara Pachilova
    Software Developer

Reply Children