Blazor Datagrid EmptyRecordTemplate

I am using the EmptyRecordTemplate template to display a custom template when no records exist when querying my data source, but it seems that this isn't rendering.  Can this template be used in datagrid in blazor?


<GridTemplates>
    <EmptyRecordTemplate>
                                <span>No Data to Display</span> 
    </EmptyRecordTemplate>
</GridTemplates>



1 Reply 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team December 29, 2020 10:42 AM UTC

Hi Rudi, 

Greetings from Syncfusion support. 

Yes we have support for EmptyRecordTemplate in Grid. You can use as like the below code to render an empty record template in Blazor Grid. We have also prepared a sample based on this. Please download the sample form the link below, 
 
 
<SfGrid DataSource="@Orders" AllowPaging="true">    <GridTemplates>        <EmptyRecordTemplate>            <span>No Data to Display</span>        </EmptyRecordTemplate>    </GridTemplates>    ...</SfGrid>
 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer
Loader.
Up arrow icon