This is a migrated thread and some comments may be shown as answers.

Collapse menu in code

1 Answer 63 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
Bob asked on 01 Apr 2021, 03:50 PM

I am using the OnClick event of the menu to perform some actions and then navigate to the new page (using NavigationManager).

The problem I am having is that if the item I clicked on is in a drop down menu, the dropdown is still expanded after the navigation (note the menu is in the MainLayout).  

Is there anyway I can collapse the menu before (or after) it navigates?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Apr 2021, 04:25 PM

Hi Bob,

You can Follow the implementation of such a feature here: https://feedback.telerik.com/blazor/1428332-add-method-to-hide-the-menu. You can also find a workaround there for the time being.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Menu
Asked by
Bob
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or