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

Conditionally show or hide menu items

2 Answers 1151 Views
Menu
This is a migrated thread and some comments may be shown as answers.
schakravarty
Top achievements
Rank 2
Iron
Iron
schakravarty asked on 15 Feb 2019, 02:37 PM

I am using the kendo angular menu using templates and want to conditionally show or hide menu items but am not able to get it to call my function passing in the item. Does anyone know how to accomplish this?

Thanks in advance....

2 Answers, 1 is accepted

Sort by
0
schakravarty
Top achievements
Rank 2
Iron
Iron
answered on 15 Feb 2019, 06:22 PM
I have figured this out. Thanks
0
Dimiter Topalov
Telerik team
answered on 18 Feb 2019, 07:49 AM
Hello Paul,

In general, you can hide/show items conditionally via the Angular *ngIf structural directive, e.g.:

https://stackblitz.com/edit/angular-gghlfo?file=app/app.component.ts

If the scenario and/or the solution you ended up applying is different, can you please share it here as well, so that other members of the community can benefit too? Thank you in advance.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Menu
Asked by
schakravarty
Top achievements
Rank 2
Iron
Iron
Answers by
schakravarty
Top achievements
Rank 2
Iron
Iron
Dimiter Topalov
Telerik team
Share this question
or