0 Replies Latest reply on Jul 6, 2007 10:45 AM by Renzo Tomaselli

    Disabling rich:menuItems from js

    Renzo Tomaselli Novice

      Hi, I actually use rich:dropDownMenu as a context menu for trees and tables. In order to save resources - I defined just one menu, which is moved to proper nodes/rows at runtime by js, being moved/activated by clicking on a node link. This solution seems to work very well.
      Now, it happens that I need to have a different disabling pattern for each node/row, so that I must apply this pattern by disabling items at runtime. From menu.js I learned how to do this, but I wonder if there is any "official" way to play with dropDownMenus from js (hiding or disabling items).