Duplicated
Last Updated: 18 Mar 2025 14:45 by ADMIN
Harry
Created on: 18 Mar 2025 11:39
Category: Menu
Type: Feature Request
0
Programatically close an open menu
For accessibility we need the menu to show on click and hide on click. We would also like to be able to reproduce the CloseOnClick behaviour from the OnClick handler. It would be good to be able to call TelerikMenu.Close() or something similar
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
3 comments
ADMIN
Hristian Stefanov
Posted on: 18 Mar 2025 14:45

Hi Harry,

Thank you for clarifying.

I'm now marking this item as a duplicate of the original.

Regards,
Hristian Stefanov
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Harry
Posted on: 18 Mar 2025 14:30
Thanks Hristian.

I'm aware of the ShowOn/HideOn. I want to enable those but also have functionality similar to CloseOnClick which won't work without the programmatic ability to Show/Hide the menu. I've voted on the appropriate feature request
ADMIN
Hristian Stefanov
Posted on: 18 Mar 2025 12:50

Hi Harry,

To achieve the behavior where the menu shows on click and hides on click, you can use the ShowOn and HideOn properties of the TelerikMenu component. Here's how you can set it up:

<TelerikMenu Data="@MenuItems"
             ShowOn="@MenuShowEvent.Click"
             HideOn="@MenuHideEvent.Click" />

Programmatically Closing the Menu

If you want a direct close method to hide the menu from code and handle a close event, we already have these submitted as feature requests:

You can add your vote for both if this is what you are looking for.

Let me know if I'm missing something.

    Regards,
    Hristian Stefanov
    Progress Telerik

    Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!