Hi Haizhi,
Greetings from Syncfusion support.
We have validated your reported requirement and we had tried to reproduce your issue, but unfortunately the issue has not been reproduced with your given requirement. We have prepared sample based on your requirement with more than 10000 data (given 20000 data). For your convenience, we have prepared a sample. Please find the below sample link.
We suspect that, If you have used combobox template then, please use the below work around solution to get rid of the reported issue in ComboBox. This issue occurred due to SignalR buffer size, we suggest increasing the MaximumReceiveMessageSize in Startup.cs file in your applications.
[startup.cs]
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddSingleton<WeatherForecastService>();
services.AddSyncfusionBlazor();
services.AddSignalR(e =>
{
e.MaximumReceiveMessageSize = 1024000;
});
}
|
After trying those solution, If the issue still exists, please try the below method to get rid of your reported issue.
While we bind large number of datasource, connection is timed out during data transfer from client to server. So, we suggest you use Query property. Using this property, at initial rendering you can render first ten data. On filtering you have to render other data. Please find the below code snippet:
[Index.razor]
<EjsComboBox @ref="comboboxObj" Placeholder="--Select--" TValue="long"
DataSource="@Customers.Select(c => new { Value = c }).ToList()"
Query="@query" AllowFiltering="true">
<ComboBoxFieldSettings Text="Company" Value="CustomerID"></ComboBoxFieldSettings>
</EjsComboBox>
@code
{
EjsComboBox<long> comboboxObj;
public string query = "new ej.data.Query().select(['value']).take(10)";
public List<long> Customers = Enumerable.Range(0, 10000).Select(c => (long)c).ToList();
} |
Could you please check the sample and get back to us, if you need any further assistance on this?
Regards,
Sureshkumar P