I have a problem showing a RadzenDropDown with a delay of about 10 sec the first time it is displayed.
The problem can easily be reproduced:
- Create a new Blazor Server App with the default sample pages using .net8 and VS2022 Prof and insatll the Radzen components.
- Add the code listed below to "Home.razor". At this point all works well. Starting the app is fast and the dropdown shows the correct result.
- Now install the NuGet Package "Microsoft.Graph" - latest version 5.47.0
When you now start the app you have to wait more than 10 seconds.
The delay only occurs if you set Multiple=true.
Do you have an idea how to solve this problem?
Code to be added in Home.razr
@code {
IList values = new int { 1, 2 };
public class Product
{
public int ProductID { get; set; }
public string ProductName { get; set; }
}
IEnumerable<Product> products;
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
List<Product> _products = new();
_products.Add(new Product() { ProductID = 1, ProductName = "Test 1" });
_products.Add(new Product() { ProductID = 2, ProductName = "Test 2" });
_products.Add(new Product() { ProductID = 3, ProductName = "Test 3" });
_products.Add(new Product() { ProductID = 4, ProductName = "Test 4" });
products = _products;
}
}