i would like to show matching items in dropdwon if there are any matching items
<SfComboBox @ref="@ComboObjCountry" TValue="string" Placeholder="Select a country" TItem="Country" DataSource="@countries" AllowCustom="true" AllowFiltering="true" @bind-Value=etlMetadata.CountryName FilterType="Syncfusion.Blazor.DropDowns.FilterType.Contains">
<ComboBoxFieldSettings Text="CountryName" Value="CountryName"></ComboBoxFieldSettings>
<ComboBoxEvents TValue="string" Filtering="@OnFilteringCountry" TItem="Country" ValueChange="countryChanged" />
<ComboBoxTemplates TItem="Country">
<NoRecordsTemplate>
<div>
<div id="nodata">No matched item, would you like to add it to the list as a new item?</div>
<SfButton id="btn" class="e-control e-btn custom-button" @onclick="@AddCountry">Add New Item</SfButton>
</div>
</NoRecordsTemplate>
</ComboBoxTemplates>
</SfComboBox>
<ValidationMessage For="@(() => etlMetadata.CountryName)" />
private async Task OnFilteringCountry(Syncfusion.Blazor.DropDowns.FilteringEventArgs args)
{
Custom = args.Text;
args.PreventDefaultAction = true;
var query = new Query().Where(new WhereFilter() { Field = "Name", Operator = "contains", value = args.Text, IgnoreCase = true });
query = !string.IsNullOrEmpty(args.Text) ? query : new Query();
await ComboObjCountry.FilterAsync(countries, query);
}