On grids with a lot of data there is a delay between when the grid is assigned the data to when the grid shows the data. During this UI painting period, the NoDataTemplate is displayed for a second or two.
The grid should not show the NoDataTemplate unless the data source is loaded with an empty collection, not just while it is still trying to show the data.
Note: Having a generic message like in the documentation "No Data available / The data is still loading ..." is not satisfying our users. (Blazor Grid - No Data Template - Telerik UI for Blazor) These should really be two different states that can show different messages.
Thanks
Hi Scott,
Thank you for your patience! I am following up with an update after we have discussed the request with the team.
We've considered the following points:
Having the above in mind, we've decided to not move forward with a LoadingDataTemplate and I am now marking the request as declined.
Regards,
Nadezhda Tacheva
Progress Telerik
Hi Scott,
Thank you for giving us feedback and providing additional information on the topic.
This week we will discuss it with the team and update the status of the item.
Regards,
Hristian Stefanov
Progress Telerik
</NoDataTemplate>
Hi Scott and Thomas,
Thank you for your suggestion! I do agree that these are different scenarios - when the Grid has an empty collection and when it is currently waiting to receive the items to display. However, both of these fall under the "no data" category and let me provide some clarification.
By specification, the NoDataTemplate is rendered when the Grid has no data to show. The data requests are made outside of the Grid and thus the Grid has no control over when the items will arrive or even if any items will arrive. In other words, one can make a request to their datasource to fetch the needed data and this may indeed take a while. The key point is that at this stage, the only information that the Grid has is that there are currently no items to show. It is up to the application to manage what will be displayed in the NoDataTemplate based on whether a request is made and the data is awaited or if there are no records to display at all.
Having the above in mind, you can conditionally control the NoDataTemplate content rendering. Here is a basic example: https://blazorrepl.telerik.com/weEeQDut33qz02hu56.
Can you think of any scenario that cannot be covered with this approach? If so, please share a runnable example and I will revise it with the dev team.
Regards,
Nadezhda Tacheva
Progress Telerik