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
80
How can I hide or show menu items from Client side in ultrawebmenu?
posted

How can I hide or show menu items from Client side in ultrawebmenu?

Parents
No Data
Reply
  • 19308
    posted

    There's no built in way to do this through the WebMenu's CSOM, but you may want to try a couple of things.  Using the CSOM you can get direct access to any Item's HTML Element.  Using that element you can set the style.display="none".  A word of caution, this isn't something that the menu was designed to do, so I can't guarantee it will come without side effects. 

    The other way I can think of to acheive this functionality would be to leverage the partial rendering capabilities of a WebAsync or UpdatePanel, and make your necessary adjustments on the server-side.  The only drawback for this option is that it's entirely possible that the user will open a menu prior to the re-rendering, and hence see stale items.

    Hope this helps,

    -Tony

Children