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

Remove / Disable Rad Menu SubItem (ChildMenu)

3 Answers 356 Views
Menu
This is a migrated thread and some comments may be shown as answers.
rama
Top achievements
Rank 1
rama asked on 18 Jul 2015, 06:50 AM

Sir.

Would anybody help me to Disable / Remove the SubMenu Item reference to VALUE. (AJAX RADMENU) using server script

I would be very grateful 

3 Answers, 1 is accepted

Sort by
0
Accepted
Aneliya Petkova
Telerik team
answered on 20 Jul 2015, 10:25 AM
Hi rama,

You can find a RadMenuItem by value and disable it using the following server-side code:
RadMenu1.FindItemByValue("1").Enabled = false;

To remove a RadMenuItem use Remove() method:
RadMenu1.FindItemByValue("3").Remove();

Attached you may find a sample project.

Please check our documentation for more information:
http://docs.telerik.com/devtools/aspnet-ajax/controls/menu/server-side-programming/methods-and-properties

Regards,
Aneliya Petkova
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
rama
Top achievements
Rank 1
answered on 22 Jul 2015, 06:20 AM

THANKS 

 works for me

 

With Rama

0
rama
Top achievements
Rank 1
answered on 22 Jul 2015, 06:22 AM

works for me

With  Regards

Rama

Tags
Menu
Asked by
rama
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
rama
Top achievements
Rank 1
Share this question
or