Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Deselect WebMenu Item
posted

Would like to know the best way to deselect a WebMenu item.

Scenario:

  • Users clicks "a" button on the screen
  • JavaScript unselects currently selected WebMenu item

I thought the following would work:

  1. var menu = $find("<%=WebDataMenu1.ClientID %>"); //Get Instance Of WebDataMenu           
  2. var selectedMenuItem = menu.get_selectedItem(); //Get Current Selected Web Menu Item
  3. selectedMenuItem.set_selected(false);

1 and 2 work, 3 does not work.

Any Suggestions.

Parents
No Data
Reply Children
No Data