I want to hide the system context menu which is visible when cell is in edit mode and user presses right button. I come to know that it can be disable on EditingControlShowing event of DataGridView. But as this event is not available in RadGridView, How can I disable or hide this context menu. Any help would be appreciated!
4 Answers, 1 is accepted
In order to do this, you could create a custom cell for the editor. Here is a very basic example
and then handle the EditorRequired event
for more information on Custom Cells, please take a look at this documentation
hope that helps
Did this help? If so please remember to mark as answer. If you need more assistance, please let me know.
Sorry, I had been busy with some other high priority tasks. Yes It works. But in this way, I will lose some other features of RadTextBox. Also I have differnet kind of columns in my grid and hence different editors, so this requires a lot of code just for hiding this default system context menu.
I just would like to suggest another idea to remove the default context menu, which could match your scenario better. You can do that by accessing the TextBox item in the standard RadTextBoxEditor. Please consider the following code as example:
I hope this helps. Let me know if you have any additional questions.
the Telerik team