blazor grid using async doesn't always display data
Attachment: GridBug_72e2d0a.zip
AllowPaging="true" AllowSorting="true" AllowExcelExport="true" AllowPdfExport="true"
DataSourceChanged="@((IEnumerable<SurveySummaryReadModel> list) => GridDataLoadedAt = DateTime.Now )"
Toolbar="@(new List<string>() { "Search" })">
|
<SfGrid>
..
..
..
</SfGrid>
@code{
protected override async Task OnInitializedAsync()
{
await Task.Yield();
await LoadLibrarySurveyList(); // Data bounded here
}
} |
Attachment: GridDataSourceUpdate_81dcf0cc.zip
|
<SfGrid>
..
..
..
</SfGrid>
@code{
protected override async Task OnInitializedAsync()
{
await Task.Yield();
await LoadLibrarySurveyList(); // Data bounded here
}
} |
- Share the complete grid code snippet with its model class
- Share your dotnet version details.
- Share the issue reproducing sample.
That worked. Thank you.
We just ran into many days trying to narrow this down.
We finally created a page to prove it is an issue with Syncfusion and not Blazor.
In our example, the data is rendered in a Syncufsion Data Grid, and at same time, same property is used to then dump Data in HTML to prove the data is present at time of rendering.
After runing multiple tests, then eventually the Grid will not render ( but the HTML shows the data is there , since they are both pulling from the same variable on the Blazor Page ).
Queston - Will be Fixed?
Is this scheduled to be given attention/fixed at some point?
If not - then plese update all the documentation on the Blazor Controls so we know we need to do
use
await Task.Yeild()
and possibly
InvokeAsync(StateHasChanged())
for Syncfusion controls on Blazor.
- Share us the complete grid rendering code snippet. You have mentioned that the data is dumped using HTML.
- Share us the video demo showing the problem you are facing.
- Kindly share us the issue reproducing sample or reproduce the issue in the below provided sample.
- 18 Replies
- 9 Participants
- Marked answer
-
JL Joshua Lapinski
- Aug 17, 2020 05:57 PM UTC
- Jan 31, 2022 12:14 PM UTC