ContextMenu item binding

2 posts, 0 answers
  1. Silvia Bumper
    Silvia Bumper avatar
    1 posts
    Member since:
    May 2011

    Posted 11 Jul 2011 Link to this post


      How do I bind  ContextMenu sub MenuItem  CommandParameter to the item that was right click on to open the context menu ?

    couldn't find a ContextMenu forum so i hope this is the right place


  2. Hristo
    Hristo avatar
    832 posts

    Posted 12 Jul 2011 Link to this post

    Hi Open Mind,

    You could use RadContextMenu Opening or Opened event to get clicked element.
    Then you could update a property of your ViewModel with the clicked element. RadMenuItem CommandParameter will be bound to this property.

    We use a similar approach in our RadContextMenu FirstLook demo:

    Kind regards,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top