Blazor Grid - Data Loads/Flashses, But Still stays "No records to display"

I have a grid and it just flashes data when its loaded, then goes back to showing no records.

<SfGrid DataSource="@ObservableData"> @*AllowSelection="false" AllowSorting="true" AllowFiltering="true" AllowGrouping="true"*@
@*<GridFilterSettings Type="@Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>*@
@*<GridGroupSettings Columns="@GroupedColumns"></GridGroupSettings>*@
<GridColumns>
<GridColumn Field=@nameof(MovieDto.Id) HeaderText="Id" IsPrimaryKey="true" DataSource="@ObservableData"></GridColumn>
<GridColumn Field=@nameof(MovieDto.Title) HeaderText="Title"></GridColumn>
<GridColumn Field=@nameof(MovieDto.Year) HeaderText="Year"></GridColumn>
@*<GridColumn Field=@nameof(MovieDto.PlexHas) HeaderText="Status" Filter="@(new {type = "CheckBox"})" Width="150">
<Template>
@{
$1$var movie = context as MovieDto;
if (movie.PlexHas)
{
<div class="statustemp e-activecolor">
<span class="statustxt e-activecolor">Yes</span>
</div>
}
else
{
<div class="statustemp e-inactivecolor">
<span class="statustxt e-inactivecolor">No</span>
</div>
}#1#
}
</Template>
</GridColumn>*@
</GridColumns>
</SfGrid>

3 Replies

RN Rahul Narayanasamy Syncfusion Team June 1, 2020 09:08 AM UTC

Hi Bradley, 

Greetings from Syncfusion. 

Query: I have a grid and it just flashes data when its loaded, then goes back to showing no records 

We have validated your query and we suspect that you have faced this problem(just flashes data when its loaded, then goes back to showing no records) in 18.1.0.54 version. We suggest you to ensure you have installed dotnet version 3.1.300 in your machine to overcome the reported problem. Please refer the screenshot below,  

 

  
Or, we suggest you to install the System.Text.Json in your application to overcome the problem you are facing.   
  
<ItemGroup> 
    <PackageReference Include="Syncfusion.Blazor" Version="18.1.0.54" /> 
    <PackageReference Include="System.Text.Json" Version="4.7.2" /> 
  </ItemGroup> 

If you are still facing the same problem after trying the above solution, then could you please share the below details. It will be helpful to validate the problem and provide a better solution. 

  • Full Grid code snippets.
  • Syncfusion NuGet version details.
  • Video demonstration of the issue.
  • Share a simple reproduceable sample if possible.

Regards, 
Rahul 



BB bradley baker June 1, 2020 01:10 PM UTC

Yes this fixed it!


VN Vignesh Natarajan Syncfusion Team June 2, 2020 03:37 AM UTC

Hi Bradley,  

Thanks for the update.  

We are glad to hear that you have resolved your query using our solution.  

Kindly get back to us if you have further queries.  

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon