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
95
webdatamenu
posted

Hi,

How to disable all webdatamenu's root items from javascript?

Regards,

KW

Parents
No Data
Reply
  • 49378
    posted

    Hello tarney,

    In order to disable all root nodes in WebDataMenu, something similar to the following may be used:

                function disableRootNodes() {
                    var menu = $find("<%= WebDataMenu1.ClientID %>");
                    for (i = 0; i < menu.getItems().get_length() ; i++) {
                        menu.getItems().getItem(i).set_enabled(false);
                    }
                }
    Hope this helps. Please do not hesitate to contact me if you have any questions.
Children