How to show/hide Kendo panel bar on click of Kendo Menu vertically

1 Answer 72 Views
Menu PanelBar
abdul
Top achievements
Rank 2
Iron
abdul asked on 18 Nov 2024, 02:02 PM

Hi,

I have a Kendo Menu with the menu items, when user will click on the menu it should show the Kendo panels vertically and then again click on the menu should hide the panels within that menu. On Click on the Panelbar items should show the respective pages.

Attached is the screenshot for the reference.

abdul
Top achievements
Rank 2
Iron
commented on 18 Nov 2024, 02:07 PM

In the screenshot, Data Management is a Kendo Menu, on click of that It show show the Kendo Panel vertically(Interest Rates,  FTP Rate Overrides, NMD Model)

On Click of Data Management again it should close/minimize the Data Management  menu.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Nov 2024, 09:26 AM

Hello Abdul,

 

Thank you for writing to us.

The Telerik PanelBar can achieve this even without any Menu:
https://demos.telerik.com/aspnet-mvc/panelbar/images

If you want to keep the Menu, you can achieve this requirement using the following approach:

1. Attach to the Menu event:
https://demos.telerik.com/aspnet-mvc/menu/events

2. Access the PanelBar instance and expand the chosen item:
https://demos.telerik.com/aspnet-mvc/panelbar/api

 panelbar.expand(item); // the item element you want to expand

Do you find this information beneficial? Let me know what you think.

 

Regards,
Eyup
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 PanelBar
Asked by
abdul
Top achievements
Rank 2
Iron
Answers by
Eyup
Telerik team
Share this question
or