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

[Solved] Capture GridViewRow From Right Mouse Click

1 Answer 130 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Carolyn
Top achievements
Rank 1
Carolyn asked on 09 Jun 2009, 03:02 PM
Is it possible to capture the GridViewRow from a right mouse click?  I was curious to see if instead of attaching the same ContextMenu to each GridViewRow, just attach it to the entire GridView as a whole, and when the ContextMenu is opened, be able to capture the GridViewRow / GridViewCell based on the cursor position.  This would save the overhead of having to repeatedly create the same context menu over and over for each GridViewRow.  Thanks.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Jun 2009, 02:00 PM
Hi Joe,

You can use similar to this blog post approach:
http://blogs.telerik.com/valerihristov/posts/09-06-01/reusing_and_customizing_a_single_contextmenu_on_a_treeview_with_radcontrols_for_silverlight.aspx

In your case however you will need GridViewRow instead RadTreeViewItem.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Carolyn
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or