Hi. All the data we get from the database is not displayed in the combo box and only some of it is displayed.
<div class="col-lg-12 control-section">
<div class="control_wrapper">
<div class="col-lg-12 control-section">
<div class="control_wrapper">
<EjsComboBox @ref="@se" Placeholder="نام دارو را وارد کنید" FloatLabelType="FloatLabelType.Auto" DataSource="@CommerceDrugsNameList" ModelType="kl" Query="@Query" TValue="int" AllowFiltering="true" EnableRtl="true">
<ComboBoxEvents TValue="int" Filtering="@CommerceDrugsNameFilter"></ComboBoxEvents>
<ComboBoxFieldSettings Value="Id" Text="Name"></ComboBoxFieldSettings>
</EjsComboBox>
</div>
</div>
</div>
</div>
@code
{
NameId[] CommerceDrugsNameList;
public async Task CommerceDrugsNameFilter(Syncfusion.EJ2.Blazor.DropDowns.FilteringEventArgs args)
{
if (args.Text.Length > 0)
{
CommerceDrugsNameList = await http.GetJsonAsync<NameId[]>($"api/CommerceDrugsName/GetNameIdByNameFiltering/{args.Text}");
se.DataSource = CommerceDrugsNameList;
se.DataBind();
}
else
CommerceDrugsNameList = null;
StateHasChanged();
}
}
Attachment:
combobox_3a61fa00.rar