Context Menu

Hello,

i am trying to use a custom context menu on a grid under asp.net web form with vb.net.

I have a web page with a grid. 
my idea is to show a dataset in the grid and allow the user through the context menu to view related data in other datasets.

So the user in the first dataset should be able to right click on a cell/row, open context menu and view the link to other datasets.

My problem is create the context menu with subcontext menu (if possible), hide/show some of the items when no required and manage one o more connected event (for context menu or for item).

I want to do it on the code side (aspx.vb).
I tried to do it with grid1.contextmenusettings but I was not able and some command seem not work.

I hope I was clear enough


1 Reply

SE Sathyanarayanamoorthy Eswararao Syncfusion Team April 22, 2018 05:14 PM UTC

Hi Luigi, 

Thanks for contacting Syncfusion support. 

Query: My problem is create the context menu with subcontext menu (if possible) 
 
To achieve this requirement we suggest you to use the custom context menu and sub context menu feature of the grid control. Please refer the below documentation for the details of custom context menu and sub context menu. 




Query: hide/show some of the items when no required and manage one or more connected event (for context menu or for item). 

To achieve this requirement we suggest you to use the contextOpen event which is triggered when the context menu is opened and contextClick which is triggered when a context menu item is clicked. Please refer the below documentation for details of the above mentioned events. 



Query: I want to do it on the code side (aspx.vb). 

The context menu settings can be handled on client side only. In server side it is not feasible to use the context menu settings. 

Regards, 
Sathyanarayanamoorthy 


Loader.
Up arrow icon