Context menu for a selection

Hi,

We have a grid of dropdown boxes set up by using e.Style.CellType = "ComboBox" within QueryCellInfo() event handler.  I would like to use a custom context menu on the grid but this is not working.  Here is what I've found:

1) Right-clicking a cell brings up the cell context menu (cut/copy/paste)

2) Using the left mouse button drag to make a selection, then right-click into the selection clears it and selects the cell that was clicked

3) If I have a selection the custom menu appears if a) I open the dropdown of the selected cell then right-click within the dropdown list, . b)​ I right-click within a readonly cell.

Could you show me how I can have my custom menu appear for a combobox as well as a selection of these combobox cells?


Thank


3 Replies

AK Alan Kin September 13, 2021 10:26 PM UTC

Nevermind, I figured it out.  I just needed to set this property:

Snippet
gridControl.Model.EnableContextMenu = true;


Also added

Snippet
gridControl.Model.DisableEditorsContextMenu = true;


Regards,

Alan



BT Balamurugan Thirumalaikumar Syncfusion Team September 14, 2021 04:16 PM UTC

Hi Alan,

Thank you for interesting in Syncfusion products.

We could understand your previous update at our end. We are checking the possibilities to generate the sample as per reported scenario. We will check and provide you the proper details on or before September 16,2021. We appreciate your patience until then.

Thanks & Regards,
Balamurugan Thirumalaikumar




MA Mohanram Anbukkarasu Syncfusion Team September 16, 2021 07:29 AM UTC

Hi Alan, 

Please ignore the previous update.  

We are glad to know that you have found the solution for your requirement. Please let us know if you require any other assistance from us. We are happy to help you.  

Regards, 
Mohanram A. 


Loader.
Up arrow icon