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
Select Item From Javascript
posted

I would like to change the selected item of the WebDataMenu from javascript.

Example:

User performs action in webdialog window and javascript is run to change the current webmenuitem.

The documentation doesn't seem to show how to accomplish this?

I would assume something similar to the WebTab

 tab.set_selectedIndex(index);

Parents
No Data
Reply
  • 6748
    Verified Answer
    posted
    Hello Sal,
     
    You can select an item in the WebDataMenu by calling the function set_selected(true) for the desired item. For example, if you have a menu with ID WebMenu1 you can select the first item, using javascript, like this:
    $find("<%=WebDataMenu1.ClientID %>").getItems().getItem(0).set_selected(true);
     
    Regards,
    Lyuba Petrova
    Developer Support Engineer
    Infragistics
     

     
Children