This is a migrated thread and some comments may be shown as answers.

Right click to select row with context menu

3 Answers 324 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeremie
Top achievements
Rank 1
Jeremie asked on 19 Oct 2011, 01:48 PM
Does anyone have any links or samples that shows how to select a row using a right mouse click and then also display a custom context menu?  I have done it before with the WinForms RadGrid but I can't seem to figure it out with the WPF RadGrid.

Thanks,

Jeremie

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Oct 2011, 01:57 PM
Hello Jeremie,

 The demo can be found here:
http://demos.telerik.com/silverlight/#GridView/RowContextMenu

The same example is available in your local copy of our WPF demos. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jeremie
Top achievements
Rank 1
answered on 19 Oct 2011, 02:00 PM
Vlad,

Thanks for the quick reply,  I reviewed the same code from the demo but I wonder.  Is there a way to accomplish this in an MVVM pattern?  Our project is trying to minimize the amount of code behind for testability.

Thanks,

Jeremie
0
Vlad
Telerik team
answered on 19 Oct 2011, 02:02 PM
Hi Jeremie,

 You can use attached behavior to achieve your goal this case. In this demo you can check how to create custom attached behavior. 

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Jeremie
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jeremie
Top achievements
Rank 1
Share this question
or