Open SubGrid on Context Menu click


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?


You can call, from the context menu

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

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