We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to keep the child grid open in initial rendering

How to keep the child grid open in initial rendering

                Initially the child grid or details row in grid will be in collapse state. The Grid uses lazy rendering technique to render the child grid or details row and hence they will rendered only after clicking the expand button at the left most column of the grid.

 

To keep the child grid/ details row open in the initial rendering itself, we need to invoke the expandAll grid`s public function in the dataBound event.

 

The dataBound event is the suitable event to call the expandAll method at initial rendering. For need to call the expandAll method in the actionComplete event.

 

The following code example demonstrates how to open the child grid or details row in the initial rendering and also after every grid action.

 

JS

 

 

MVC

 

 

 

ASP

 

As the ASP.Net Grid don’t support hierarchical bindings, we have used the details template to depict the usage of the expandAll method.

 

 

 

 

 

The expandAll method will be invoked in the dataBound and the actionComplete event as follows.

 

 

 

The below screenshot is displayed as the result of the above code examples.

 

 

Open child grid/details rows initially using expandAll method.

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6285 02/15/2016 02/15/2016 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon