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

ContextMenu on RadGridView

1 Answer 242 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ofer alper
Top achievements
Rank 1
ofer alper asked on 21 Dec 2009, 03:37 PM
Hello,

I need a context menu on my radgrid view, but i need it to operate on the current data context of the cell (I.e. each operation on the context menu will be on the current context of the cell (or row).

I used this code:
            <telerik:RadGridView.Resources>
                <ContextMenu x:Key="MyContextMenu" Opened="ContextMenu_Opened_1">
                    <MenuItem Header="Update Order" Click="Update_Click"/>
                    <MenuItem Header="Cancel Order" Click="Cancel_Click"/>
                </ContextMenu>
            </telerik:RadGridView.Resources>

But i didn't know how to implement Update_Click to operate on the appropriate DataContext

Thanks,
Ofer

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Dec 2009, 06:33 AM
Hello Ofer,

You can check this demo for more info:
http://demos.telerik.com/wpf/?GridView/RowContextMenu

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
ofer alper
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or