Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:subgrid_as_grid [2009/11/28 08:08]
127.0.0.1 external edit
wiki:subgrid_as_grid [2017/12/12 17:20] (current)
admin
Line 1: Line 1:
 ====== Subgrid as Grid====== ====== 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.+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}} {{ :​wiki:​grid_subgrid.png | Grid as Subgrid}}
Line 10: Line 10:
  
 ===== Definition ===== ===== Definition =====
-We use two events described in options array: **subGridRowExpanded** and **subGridRowColapsed** [note the unconventional spelling].+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. 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.
Line 61: Line 61:
             {name:"​total",​index:"​total",​width:​100,​align:"​right",​sortable:​false}             {name:"​total",​index:"​total",​width:​100,​align:"​right",​sortable:​false}
           ],           ],
-          height: 100%,+          height: ​'100%',
           rowNum:20,           rowNum:20,
           sortname: '​num',​           sortname: '​num',​

QR Code
QR Code wiki:subgrid_as_grid (generated for current page)