[RadzenProfileMenu] Open or Close callbacks #179

Closed
opened 2026-01-29 17:32:52 +00:00 by claunia · 1 comment
Owner

Originally created by @php-wizard on GitHub (Aug 23, 2021).

Is your feature request related to a problem? Please describe.
RadzenProfileMenu like other components, has a Click handler, but i would need to be notified when the menu dropdown gets opened or gets closed, not just clicked on. Because when it is open the user can close it by just clicking anywhere else on the page, and in this case RadzenProfileMenu won't fire a Click.

Describe the solution you'd like
Provide the possibility to set a callback for Open and Close, like for Click

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Or alternatively a Radzen method i can poll at any time to ask if a RadzenProfileMenu is open or close. ( I may e.g. handle click events on the whole page, and ask Radzen if the RadzenProfileMenu is open or close at that moment ).
But this latter solution is dirty, and at this point i can already solve it via a Jquery click handler , which queries the CSS selector matching with the RadzenProfileMenu and check if its display or its ChildContent is none ( assuming the markup for RadzenProfileMenu will never change, although it may change with future updates of Radzen ).

Originally created by @php-wizard on GitHub (Aug 23, 2021). **Is your feature request related to a problem? Please describe.** RadzenProfileMenu like other components, has a Click handler, but i would need to be notified when the menu dropdown gets opened or gets closed, not just clicked on. Because when it is open the user can close it by just clicking anywhere else on the page, and in this case RadzenProfileMenu won't fire a Click. **Describe the solution you'd like** Provide the possibility to set a callback for Open and Close, like for Click **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. Or alternatively a Radzen method i can poll at any time to ask if a RadzenProfileMenu is open or close. ( I may e.g. handle click events on the whole page, and ask Radzen if the RadzenProfileMenu is open or close at that moment ). But this latter solution is dirty, and at this point i can already solve it via a Jquery click handler , which queries the CSS selector matching with the RadzenProfileMenu and check if its `display ` or its ChildContent is `none` ( assuming the markup for RadzenProfileMenu will never change, although it may change with future updates of Radzen ).
claunia added the enhancement label 2026-01-29 17:32:52 +00:00
Author
Owner

@enchev commented on GitHub (Oct 24, 2024):

We are not planning to add such feature to ProfileMenu component. You can use Popup component instead where such events are available.

@enchev commented on GitHub (Oct 24, 2024): We are not planning to add such feature to ProfileMenu component. You can use Popup component instead where such events are available.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#179