Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Manhar on Apr 01, 2009 14:10
open dhtmlx forum
Dhtmlx Grid and Context Menu

Hi,

Iam using grid, wherein i want to display a 1)dropdown (with values) and 2)a text box with adjacent button all of this on the right click of the column values.

My code looks like this

//Include js and css files
//Intialze mygrid
menu = new dhtmlXMenuObject(null,"standard");
menu.setImagePath("Common/MenuImgs/");
menu.renderAsContextMenu();
mygrid.enableContextMenu(menu);
menu.loadXML("/Common/_context.xml");
mygrid.attachEvent("onBeforeContextMenu",onShowMenu);
menu.attachEvent("onClick",onButtonClick);

Is there any way i can have these on right click of the columns?


Answer posted by dhxSupport on Apr 03, 2009 04:01

>>Iam using grid, wherein i want to display a 1)dropdown (with values) and 2)a text box with adjacent button all of this on the right click of the column values.

Unfortunately it cannot be done using context menu. Context menu in such case is a instance of a dhtmlxMenu. Using dhtmlxMenu you are only availible to display list of menus. Please see more examples here http://dhtmlx.com/docs/products/dhtmlxMenu/samples/init/context_zones.html