Category / Section
How to render TreeGrid with all the rows collapsed
1 min read
To render all the TreeGrid rows in collapsed state we need to enable the enableCollapseAll property.
The below code example explains about how to render the all TreeGrid rows with collapsed state:
<div id="TreeGridContainer" style="height:400px;width:100%"></div> <script type="text/javascript"> $(function () { $("#TreeGridContainer").ejTreeGrid({ //... dataSource: projectData, enableCollapseAll: true, }); }); </script>
A Sample to render all the TreeGrid rows in a collapsed state is available in the following link,