Open SubGrid on Context Menu click

Hi,

We can expand and collapse subGrid by clicking on the column mark as “+”. In my grid I have a contextMenu and I want to have a menu item to expand and collapse subGrid. So that I can get red of the (hide) “+” marked column. How can I do this?

Thanks.

You can call, from the context menu

grid.cells(id, index).open(); //or grid.cells(id, index).close();

where
id - id of row in question
index - index of subgrid column