We have a custom menu item (HtmlBoxMenuItem) we added the htmleditor (declared in ASPX instead of adding thru code).
Everything works fine but being a context menu, the action associated with the menu item is conditional. That is we would only want it enabled/disabled when the selected element/range meets a certain criteria. We have code in place to check for this criteria already (let's say for example if the selection is inside a table) but can't seem to find any reference on how or if it is possible to disable/hide a menu item.
Temporarily we check at BeforeAction event handler and cancel the event and/or show an alert box if the condition is not met.
But is there any event, property or method to make help achieve this hiding/disabling?