Can I use the Menu helper with the Drawer helper?

1 Answer 10 Views
Drawer
Dave Hayward
Top achievements
Rank 1
Dave Hayward asked on 13 Nov 2022, 10:22 PM

I'm trying to use a menu helper in the drawer's Template and it's not working. Is this even possible?  Do you have any examples of using other controls with the helper? All the examples are pretty simple.

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 17 Nov 2022, 06:32 AM

Dave,

Initializing a Menu component in the Drawer's template currently is not supported. You can have a Menu in the .Content of the Drawer, but in the .Template should contain a ul with li elements with the following attributes:

data-role='drawer-item'

or

data-role='drawer-separator'

If you want a hierarchy of items in the .Template, see this demo's View Source tab: https://demos.telerik.com/aspnet-mvc/drawer/hierarchy for an exemplary implementation.

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Drawer
Asked by
Dave Hayward
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or