Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > Menu item set disable client side

Answered Menu item set disable client side

Feed from this thread
  • Pic avatar

    Posted on Feb 4, 2012 (permalink)

    Hi guys,

    I am talking about contextmenu. I am trying to make a MenuItem not visible.
    Let's say a user right-click on a button, a ContextMenu appear and give him some choises.
    I have a javascript code that will determine what options (MenuItem) will be available for him.
    I have managed to enable/disable the menuitems following this library but I can't figure out how to make the MenuItem not visible (rather than disabled).

    Thanks in advance.

    Reply

  • Answer Princy MVP avatar

    Posted on Feb 5, 2012 (permalink)

    Hello,

    Try with set_visible() method.
    JS:
    sender.set_visible(false); // for menu
    args.get_item().set_visible(false); // for a menu item

    Thanks,
    Princy.

    Reply

  • Pic avatar

    Posted on Feb 6, 2012 (permalink)

    Thanks a lot Princy

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > Menu item set disable client side
Related resources for "Menu item set disable client side"

[  ASP.NET Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]