When you open a page with a DataGrid you typically see the following:
An empty data grid opens with "No records to display" warning
Split second passes
The data loads in and the grid is resized and populated with data
This creates a visual 'flash' of empty grid into populated (and resized) grid. It's even more noticeable when you refresh 1 page with the grid multiple times. Is there a way to avoid rendering a grid at all before the data is fully loaded?
You can hide any Radzen Blazor component by settings its Visible attribute. Have in mind that if you use the LoadData event of RadzenDataGrid this won't be a solution. You can set IsLoading in such cases.
Could you please explain how IsLoading should be used in order to prevent the flicker? As I understand it just controls whether or not the spinner is shown, but I still get to see the empty grid for a split second.
This sounds impossible with IQueryable then, I can't rely on LoadData because it's not getting triggered and I can't go with "until data is available" because data in IQueryable is always available, it's just a matter of delay while it's being fetched.