How to disable menu item call dynamically

Hi All,
I want to disable the menu item call from the menu item button based on some conditions…
Please tell me the possibilities…

Super() on clicked method is what that triggers the menu items related to it. You can manipulate it by overriding the clicked method.

Hi Kranthi,
Thanks…Can you pls tell me how to do the same in ax 7 using extensions…

Hi Kranthi,
Any suggestions…?