Categories | Question details Back To List | ||
DHX Grid : Expand or collapse a subrow column using Context Menu Hi there, How to expand or collapse a subrow column type using Context Menu in Grid? Answer posted by dhtmlx support on Sep 23, 2008 01:07 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(); } |