Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151202 | Feb 3,2020 05:00 PM UTC | Feb 6,2020 02:06 AM UTC | Blazor | 3 |
![]() |
Tags: ComboBox |
public void ConfigureServices(IServiceCollection services)
{
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddSingleton<WeatherForecastService>();
services.AddSyncfusionBlazor();
services.AddSignalR(e =>
{
e.MaximumReceiveMessageSize = 1024000;
});
}
|
<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();
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.