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

Grid loading complete

1 Answer 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Veteran
Sam asked on 28 Apr 2020, 10:45 AM
When I load my grid currently I'm getting no results flash up before my results display. Is there a way to know when the grid has finished loading so I can control this no results myself?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 28 Apr 2020, 01:52 PM

Hello, Sam,

I can assume that the data is coming from the server and it takes time to finish the request.

Please have in mind that the Grid is not loading data itself and it only renders the data that it is passed to it. This means that the moment the Grid has data is the same time the data is received from the server and set in the state.

A similar implementation can be seen in our demo with server data. The data is loaded when we hit the `then` callback from the fetch requests: 

https://www.telerik.com/kendo-react-ui-develop/components/grid/data-operations/odata-server-operations/

Let me know if you need additional information on this matter.

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.
Srinivas
Top achievements
Rank 1
Iron
commented on 23 Mar 2024, 08:49 PM

Still it displays the "No records" message. If API takes some time we are seeing this message. Any HELP is appreciated.
Vessy
Telerik team
commented on 25 Mar 2024, 01:11 PM

Hi, 

I have already answered your other post on the matter, so lets continue our conversation there in order to keep it at one place. You can find my answer and share the requested details in the following link - https://www.telerik.com/forums/react-grid-manual-loading-indicator 

Tags
General Discussions
Asked by
Sam
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Share this question
or