How to Expand all Child Grid in JavaScript Hierarchical?
Problem
Expanding all child grid in the Hierarchical JavaScript Grid.
Solution
All the child grid can be expanded by using expandCollapse function in the create client side event.
JS
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
------------
pageSettings: { pageSize: 3 },
create: "onCreate",
childGrid: {
----------------
pageSettings: { pageSize: 2 },
},
});
});
function onCreate(args) {
var detailRow = this.element.find(".e-detailrowcollapse");
for (var i = 0; i < detailRow.length; i++)
this.expandCollapse($(detailRow[i]));
}
</script>
Screen Shot

Fig: Expanded child Grid in Hierarchical Grid
Conclusion
I hope you enjoyed learning how to expand all child Grid in JavaScript hierarchical.
You can refer to our JavaScript Grid feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript Grid example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!