Hi there,
How to expand or collapse a subrow column type using Context Menu in Grid?
There are open()/close() methods to do this.
So you can use menu’s onClick event handler in the following way:
cMenu.setContextMenuHandler(onButtonClick);
function onButtonClick(menuitemId,grid_Id){
var data=grid_Id.split("_"); //rowId_colInd
var row_id = data[0];
if(menuitemId == “open”)
grid.cells(row_id,index).open();
if(menuitemId == “close”)
grid.cells(row_id,index).close();
}