Can a Menu Item be disabled through Javascript?
When I try to use the GetItems() function of the WebData Menu I get: Object doesn't support this property or method.
I believe this functionality existed in 9.2.
Here is the code I'm using. This worked in a 9.2 project:
var
items = menu.getItems();
An example of the Javascript that will work would be appreciated.
Thanks in advance.
Hello Kishore,
A MenuItem can be disabled with javascript. For example, if you would like to disable the first root item you can do it like this:
var menu = $find("<%=WebDataMenu1.ClientID %>");
menu.getItems().getItem(0).set_enabled(false);
Hope this helps.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you for the answer and it's quickness. It worked exactly as I wanted. I'm not sure I would have gotten there from the 9.2 code I was given so your assistance was very valuable.