This is a migrated thread and some comments may be shown as answers.

how to load data dynamically in Kendo React Grid Component?

1 Answer 671 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rohullah
Top achievements
Rank 1
Rohullah asked on 25 Mar 2020, 06:11 AM
how to load data dynamically in kendo react grid component?(for example in useEffect() function) thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Mar 2020, 08:20 AM

Hello, Rohullah,

This can be done by binding the Grid data to the state (or useState) and updating it.

This is an example using a remote API and useEffect:

https://stackblitz.com/edit/react-dcnzi1?file=app/main.jsx

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Rohullah
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or