Context Menu for Silverlight. Integration with RadTreeView

Tuesday, October 07, 2008 by Valentin Stoychev | Comments 5

Here at Telerik we are cooking a lot of things with Silverlight. You will see some great new (and big!) controls with our Q3 release that is already knocking on the door.

One small, but very popular thing, that is missing in Silverlight2 these days is the Context Menu support. As we got this working already internally, I thought that I'll share the good news with you :)

Silverlight ContextMenu TreeView

This image above shows the integration between the new RadContextMenu and RadTreeView. As you can see you have full control over the context menu content, and you can also control the shortcut keys that will open the menu.

So, any comments about that?

 

5 Comments

  • hwsoderlund 08 Oct 2008
    It looks great! Just one suggestion: Please make it possible to pop up the context menu when clicking the left mouse button, and not only the right. It would also be great if we could "attach" the context menu to any clickable element. Example: In my application I have a datagrid with one column containing a linkbutton with the text "Actions". When clicked (left button), a context menu opens. I'm currenty using the regular RadMenu together with an invisible background canvas, calculating the menu position manually. It would be great if the context menu could be used out of the box for this purpose.
  • Valentin 08 Oct 2008
    Yes - the context menu is made to work with any element. You can attach it also on any *event*. For example you can attach in it to the "ValueChanged" event of the RadSlider, so no problem with flexibility. Thanks for your feedback!
  • Nathan 08 Oct 2008
    Did you enable this javascript? Don't believe Silverlight has native support for trapping the right mousebutton (and / or disabling the default context menu).
  • Kevin Babcock 08 Oct 2008
    Great stuff Valentin, keep it coming!
  • shai 03 Feb 2009
    Hi Valentine
    This will solve a lot of head ache
    when it will be released?
    Shai

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)