Q3 clarification

2 posts, 1 answers
  1. Josh
    Josh avatar
    27 posts
    Member since:
    Feb 2012

    Posted 18 Oct 2012 Link to this post

    In reviewing the Q3 release notes, I noticed this change to the ContextMenu:
         - Changed RadContextMenu Source and OriginalSource event argument properties to be the context menu (were UIElement)

    We have been casting the OriginalSource to RadMenuItem to get what item in the menu was selected.  Does this change mean that the OriginalSource will now be the RadContextMenu?  If that's the case, I'm not sure I understand why it was changed.
  2. Answer
    Hristo avatar
    832 posts

    Posted 18 Oct 2012 Link to this post

    Hi Josh,

    We have changed the Source and OriginalSource properties of RadContextMenu Opened and Closed events to return the RadContextMenu instance. They were returning the element which handled the MouseRightButtonUp (in case EventName is MouseRightButtonUp) and caused RadContextMenu to Open/Close. But this was different in WPF so we fix it.
    ItemClick will continue to work as before - OriginalSource is the RadMenuItem that was clicked.
    We should probably improve the description of this item in the release notes.

    Let us know if you need more information.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top