Hi Ron,
I have carefully reviewed the implementation of the
setOptions() method of the ContextMenu and the widget as a whole and have performed several test. Nevertheless, I did not managed to reproduce a scenario in which the ContextMenu gets re-initialized (executes its
init() method) after the
setOptions() has been called. May I ask you to prepare and send us such sample, where the described could be observed?
As per the
_wire() method call, it does exactly what you need. It will reattach the required listeners to the target elements. As you have correctly noted, using internal methods is never the best option. Nevertheless, in this specific case it executes the appropriate logic.
Regards,
Veselin Tsvetanov
Progress Telerik