[PR #1696] [CLOSED] Created RadzenDropdown LoadDataOnOpen Parameter #2865

Open
opened 2026-01-29 18:20:48 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1696
Author: @antonio272a
Created: 9/16/2024
Status: Closed

Base: masterHead: dopdown-load-data-on-open


📝 Commits (1)

  • 7847534 Added the parameter LoadDataOnOpen to RadzenDropdown to call the LoadData only when the popup is oppened

📊 Changes

3 files changed (+53 additions, -13 deletions)

View changed files

📝 Radzen.Blazor/RadzenDropDown.razor.cs (+20 -5)
📝 Radzen.WebAssembly.sln (+0 -8)
RadzenBlazorDemos/Pages/DropdownLoadDataOnOpen.razor (+33 -0)

📄 Description

The issue:
On an app I have a dropdown component that uses RadzenDropdown and searchs on database for the options based on the Value type.
On a specific page of mass creation I have about 100 dropdowns that search on the dabase in generic ways, so it triggers about 100 SQL's in a very short time, what causes the database license to return an error for too many users.

The solution:
In order to not have to handle it manually every time I have this kind of scenario, I added a LoadDataOnOpen parameter to RadzenDropdown that basically does not trigger the LoadData on the dropdown initialization and runs it on the first time that the popup is oppened.

Also created a Demo for test on "/dropdown-load-data-on-open"


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/1696 **Author:** [@antonio272a](https://github.com/antonio272a) **Created:** 9/16/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dopdown-load-data-on-open` --- ### 📝 Commits (1) - [`7847534`](https://github.com/radzenhq/radzen-blazor/commit/78475347ef580f7f82dd8c2aaa2f613a58a9e784) Added the parameter LoadDataOnOpen to RadzenDropdown to call the LoadData only when the popup is oppened ### 📊 Changes **3 files changed** (+53 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenDropDown.razor.cs` (+20 -5) 📝 `Radzen.WebAssembly.sln` (+0 -8) ➕ `RadzenBlazorDemos/Pages/DropdownLoadDataOnOpen.razor` (+33 -0) </details> ### 📄 Description The issue: On an app I have a dropdown component that uses RadzenDropdown and searchs on database for the options based on the Value type. On a specific page of mass creation I have about 100 dropdowns that search on the dabase in generic ways, so it triggers about 100 SQL's in a very short time, what causes the database license to return an error for too many users. The solution: In order to not have to handle it manually every time I have this kind of scenario, I added a LoadDataOnOpen parameter to RadzenDropdown that basically does not trigger the LoadData on the dropdown initialization and runs it on the first time that the popup is oppened. Also created a Demo for test on "/dropdown-load-data-on-open" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:20:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2865