I am afraid, that RadGridView does not provide out-of-the box support for cut operations. However, you can implement a custom Keyboard Command Provider.
Within the overriden ProvideCommandsForKey
method you can add the following check for a cut operation.
(key == Key.X && Keyboard.IsKeyDown(Key.LeftCtrl))
Within the if-statement, you can simply iterate through the selected items of RadGridView through its SelectedItems
property and remove them from the Items
As for the pasting operation, you will have to implement custom logic for handling it. You can take a look at the following articles for further reference.
- Clipboard Handlingwith .NET
- Copying multiple items to the clipboard
- Saving and obtaining custom objects to/from Windows Clipboard
- How to: Add Data to the Clipboard
Hope this helps.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items