Articles in this section
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>

 

Render all rows in collapsed state.

A Sample to render all the TreeGrid rows in a collapsed state is available in the following link,

Sample

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied