jquery-treegrid
jquery-treegrid copied to clipboard
Collapsed rows
Hi, can you advise me how to collapsed all rows by default?
Yeah, from the documentation:
Parameter | Type | Default value | Description |
---|---|---|---|
initialState | String | expanded | Initial state of tree'expanded' - all nodes will be expanded'collapsed' - all nodes will be collapsed |
Or individually per node, apply either "treegrid-expanded" or "treegrid-collapsed" to your element' CSS class: Ex:
<tr class="treegrid-110 treegrid-parent-109 treegrid-expanded">
<td>Stuff</td>
</tr>