How can I hide or show menu items from Client side in ultrawebmenu?
Tony,
Thanks for the info. Can this be entered as an enhancement request. The menu items have an enabled property, please add a visible property that can be manipulated in client-side javascript.
Thanks
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