Would like to know the best way to deselect a WebMenu item.
Scenario:
I thought the following would work:
1 and 2 work, 3 does not work.
Any Suggestions.
Hello Sal,
Let me know if you have any questions with this matter.
Thanks.
Thanks for your post. Actually with the third point above from your post you deselect the menu item but the Item remains Active and in that way the style used for Activation is the same like this one for selection. So, anyway you can overcome this in the following way :
23 function webDataMenuDeselect() {
24 var oMenu =
25 $IG.WebDataMenu.find('<%=WebDataMenu1.ClientID%>')
26 var selectedItem = oMenu.get_selectedItem();
27 selectedItem.set_selected(false);
28 oMenu._focusElement.focus();
29 oMenu._focusElement.blur();
30 }
Thank you.