How to dynamically disable subgrids?


Is there a right way (or any way) to conditionally disable a column of type “sub_row” in a grid at the time one is loading data into it? What would be preferable is to have the “+” symbol go away and also not attempt to open a subgrid if something clicks in that space. I tried hiding the “sub_row” column (which would be less than optimal anyway), but it completely wrecked the rest of the grid formatting, as if some sort of exception were caught internally by dhtmlx and the grid initialization didn’t complete.

Note that we don’t have the option to set a different column type on that when we initialize the grid, because the grid is created before we know whether we need the sub-grids or not.