On the grid control, I have a grid setup as such:
<EjsGrid @ref="@grid" @ref:suppressField DataSource="@ViewModel.FilteredDocuments" TValue="Document" ModelType="@model" AllowPaging="true" AllowSelection="true" AllowResizing="true" AllowReordering="true" AllowFiltering="true">
<GridPageSettings PageSizes="true"></GridPageSettings>
<GridFilterSettings Type="Syncfusion.EJ2.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
<GridColumns>
<GridColumn Field="DocumentName" HeaderText="Document Name"></GridColumn>
<GridColumn Field="AssignedOn" HeaderText="Assigned On">
<Template>
@{
var data = (context as Document);
<span>@data.AssignedOn.ToShortDateString()</span>
}
</Template>
</GridColumn>
<GridColumn Field="AssignedBy" HeaderText="Assigned By"></GridColumn>
<GridColumn Field="ExpirationDate" HeaderText="Expiration Date">
<Template>
@{
var data = (context as Document);
<span>@data.ExpirationDate.ToShortDateString()</span>
}
</Template>
</GridColumn>
<GridColumn Field="LocationName" HeaderText="Facility Name">
<Template>
@{
var data = (context as Document);
if (!string.IsNullOrEmpty(data.LocationName))
{
if (IsAdmin)
{
<a rel='nofollow' href="/hq/location/@data.AssignedLocation.Id">@data.LocationName</a>
}
else
{
<a rel='nofollow' href="/external/location/@data.AssignedLocation.Id">@data.LocationName</a>
}
}
}
</Template>
</GridColumn>
<GridColumn Field="AssignedLocation.PrimaryUser" HeaderText="Facility Contact">
<Template>
@{
var data = (context as Document);
if (data.AssignedLocation.PrimaryUser != null && IsAdmin)
{
<a rel='nofollow' href="mailto:@data.AssignedLocation.PrimaryUser.EmailAddress"> @string.Format($"{data.AssignedLocation?.PrimaryUser?.FullName} {data.AssignedLocation?.PrimaryUser?.EmailAddress}")</a>
}
if (data.AssignedLocation.PrimaryUser != null && !IsAdmin)
{
<span>@data.AssignedLocation.PrimaryUser.FullName</span>
}
else if (data.AssignedLocation.PrimaryUser == null && IsAdmin)
{
<p>@L["No Primary User Assigned to Facility"]</p>
}
}
</Template>
</GridColumn>
</GridColumns>
</EjsGrid>
When I choose a filter type (contains, starts with, etc) the menu closes before I can start tying into the field. When I click filter again the selection goes back to the default...in my instance 'starts with'.