You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/grid/configuration.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1626,6 +1626,8 @@ The row expander functionality allows using nested content in Grid sub-rows. You
1626
1626
This functionality requires PRO version of the DHTMLXGrid (or DHTMLX Suite) package.
1627
1627
:::
1628
1628
1629
+

1630
+
1629
1631
### Adding sub-rows
1630
1632
1631
1633
In order to enable the row expander feature, you should use the [`subRow`](grid/api/grid_subrow_config.md) configuration option. It defines the content of sub-rows for each row of the Grid. The`subRow` property is a callback function which is called with the row object as a parameter and should return an HTML string or the constructor of a Suite component (Grid, Chart, Form, DataView, etc.).
@@ -1650,6 +1652,8 @@ const grid = new dhx.Grid("grid_container", {
1650
1652
});
1651
1653
~~~
1652
1654
1655
+
**Related sample:** [Grid. Rowexpander. CustomHTML and hiding toggle icon](https://snippet.dhtmlx.com/pvgyd3z9)
1656
+
1653
1657
In the example below a sub-row contains a subgrid:
1654
1658
1655
1659
~~~jsx {7-16}
@@ -1767,6 +1771,8 @@ const grid = new dhx.Grid("grid_container", {
1767
1771
});
1768
1772
~~~
1769
1773
1774
+

1775
+
1770
1776
In the above example the [`subRowConfig`](grid/api/grid_subrowconfig_config.md) config set as a callback function defines that sub-rows with the height 250px will be created for rows that have some data. For rows without data the `height:0` setting is specified, so sub-rows won't be created for these rows.
1771
1777
1772
1778
**Related sample:** [Grid. Row expander. Subgrid only in specific rows](https://snippet.dhtmlx.com/03udbtmr)
@@ -1909,7 +1915,11 @@ const grid = new dhx.Grid("grid_container", {
0 commit comments