Peter1
April 6, 2024, 5:16pm
1
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;
}
}
I think another user experienced similar issues with that package that are unrelated to the Radzen.Blazor components. Does removing that package resolve the problem? I think it somehow slows down Blazor initialization as a whole and affects everything else.
Peter1
April 6, 2024, 7:24pm
3
Yes, after removing the package the normal speed is back. But this does not really solve the problem as there is no real alternative Package to implement AD functions.
I hope you can find out why this MS Graph packages impacts the Radzen packages in such way.
Me too. This did happen for me also with a Radzen Grid, and clicking on the sort of a column. Not sure why the MS package affects Radzen so dramatically.
I tried to add this bug to Microsoft. Maybe you guys could work with them on it.
opened 09:51PM - 07 Aug 25 UTC
status:waiting-for-triage
type:bug
### Describe the bug
When using the Radzen Data grid and clicking on a column t… o sort, when the Microsoft.Graph page (version 5.84.0) is included in the blazor app, the first click on a data sort column takes about 10 seconds. After that, it takes less than 1 second to sort.
### Expected behavior
When I click on the column to sort it, it should immediately sort and re-render.
### How to reproduce
1) Create an app with a [Radzen data grid](https://blazor.radzen.com/datagrid-sort?theme=material3) using Microsoft.Graph in the project (doesn't have to be used)
2) load some data into the grid
3) click on a column to sort.
The sort will take like 10 seconds.
### SDK Version
5.84.0
### Latest version known to work for scenario above?
unkown
### Known Workarounds
remove Microsoft.Graph from the UI project, and copy all the graph models needed into local code.
### Debug output
<details><summary>Click to expand log</summary>
```
<Log output here>
```
</details>
### Configuration
OS: Windows 11
Arch: x65
Browser: Google Chrome v138.0.7204.184
### Other information
Link to the problem description with Radzen:
http://forum.radzen.com/t/filtering-and-sorting-taking-longer-than-expected-on-first-use/16702/12
http://forum.radzen.com/t/slow-response-in-multi-select-radzendropdown/16952