In the sample below, copy and paste will operate on the row as expected but delete is disabled. I'm expecting delete to allow me to delete the row (as if I pressed the delete key on the keyboard).
<
telerik:RadGridView
x:Name
=
"RadGridView"
>
<
telerik:RadGridView.ContextMenu
>
<
ContextMenu
>
<
MenuItem
Command
=
"ApplicationCommands.Copy"
></
MenuItem
>
<
MenuItem
Command
=
"ApplicationCommands.Paste"
></
MenuItem
>
<
MenuItem
Command
=
"ApplicationCommands.Delete"
></
MenuItem
>
</
ContextMenu
>
</
telerik:RadGridView.ContextMenu
>
</
telerik:RadGridView
>
public
GridMenuTestWindow ()
{
InitializeComponent ();
ObservableCollection<MyData> dataList =
new
ObservableCollection<MyData> ();
for
(
int
i = 0; i < 4; i++)
{
dataList.Add (
new
MyData () {Name =
"Name"
+ i});
}
this
.RadGridView.ItemsSource = dataList;
}
public
class
MyData
{
public
String Name {
get
;
set
; }
}