Hi Pieterjan,
Sorry for the delay and inconvenience caused.
We have analyzed your query and suspect that you want to
display “No records to display” when searching the empty grid. We suggest you
to achieve your requirement by using a if condition inside the
EmptyRecordTemplate feature of grid to differentiate text in empty Grid.
Kindly refer the attached code snippet for your reference.
|
<SfGrid @ref="grid" DataSource="@Orders" AllowPaging="true" Toolbar="@(new List<string>() {"Update", "Search" })" Height ="315">
<GridEvents OnDataBound="DataBoundHandler" OnActionBegin="ActionBeginHandler" TValue="Order"></GridEvents>
<GridTemplates>
<EmptyRecordTemplate>
@if (grid.SearchSettings.Key
!= "")
{
<span>Custom record
message</span>
//Customize
content to display
}
else
{
<span>No records to display</span>
}
</EmptyRecordTemplate>
</GridTemplates>
|
Kindly get back to us if you have any further queries.
Regards,
Sarveswaran PK