====== Subgrid as Grid====== This is not a ready for you method, but rather a solution using some of the available methods and events. In this alternative to a subGrid, we use the subGrid functions of the main grid to create not a subGrid, but another grid, with all of the power and capacity of the main grid but appearing, as before, under the "parent" record with the same ability to reveal and hide it. {{ :wiki:grid_subgrid.png | Grid as Subgrid}} ===== Installation ===== In order to use this module you should mark the Subgrid when you download the grid. For more information refer to [[Download]].\\ For Developers - this is the grid.subgrid.js in the src directory. ===== Definition ===== We use two events described in options array: **subGridRowExpanded** and **subGridRowColapsed** [note the unconventional spelling] When these events are defined the population of the data in the subgrid is not executed. This way we can use the subGridUrl to get our custom data and put it into the expanded row. Having this it is easy to construct another grid which will act as subgrid. Here is this technique. We again use our example. Note that subGridRowColapsed is not defined. This is true because when the row is collapsed the contents of the div tag are removed.