2 Answers, 1 is accepted
0
Accepted
Hello, Joe,
Currently, the loading indicator can only be rendered using custom logic to place the loading element over the desired element.
This is an example demonstrating how to achieve it for the Grid during requests:
https://www.telerik.com/kendo-react-ui/components/grid/advanced-examples/loading-indicator/
The team is also considering implementing it as a built-in feature for the Grid.
Regards,
Stefan
Progress Telerik
Currently, the loading indicator can only be rendered using custom logic to place the loading element over the desired element.
This is an example demonstrating how to achieve it for the Grid during requests:
https://www.telerik.com/kendo-react-ui/components/grid/advanced-examples/loading-indicator/
The team is also considering implementing it as a built-in feature for the Grid.
Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Joe
commented on 25 Jun 2018, 08:22 AM
Top achievements
Rank 1
Works like a charm! Thanks, and sorry for not spotting this myself in the docs.
0
Srinivas
Top achievements
Rank 1
Iron
answered on 23 Mar 2024, 08:51 PM
If the API Takes time, I still see NO records to display message. Anyway to avoid this please.
Vessy
commented on 25 Mar 2024, 04:40 AM
Telerik team
Hi, Srinivas,
Can you elaborate a bit on the exact scenario when the message is not shown? It will be really helpful if you send me sample where I can reproduce the behavior that you are facing and examine the exact setup leading to it.
Regards,
Vessy
Srinivas
commented on 25 Mar 2024, 07:29 PM
Top achievements
Rank 1
Iron
Very basic. We are loading the data for Kendo React Grid using back end api. When the api is still loading we wil see "No Records Available" after the api finishes, every thing works great. Your example working great when we want to load second page, where second page is taking some time. You can simulate withe very long api call and you see the problem.
Vessy
commented on 27 Mar 2024, 04:26 PM
Telerik team
Hello, Srinivas,
Thanks you for the clarification.
Basically, there are two possible ways to hide the "No records" message shown when the Grid is empty:
- you can set a white overlay to the loading panel wrapper that will hide the entire grid:
- https://stackblitz.com/edit/react-amywbj-pigspg?file=app%2Fproducts-loader.jsx<div className="k-loading-mask" style={{ backgroundColor: 'white' }}> ... </div>
- or you can hide the wrapper of the "No data" message with a similar CSS style:
- https://stackblitz.com/edit/react-amywbj-zbykt8?file=index.html.k-grid-norecords-template, .k-grid-norecords { visibility: hidden; }
I hope the provided information will help you to achieve the target result.