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 bind parent grid dataSource's inner array as dataSource for child grid?

This explains about binding parent grid dataSource inner array as dataSource for child grid.

 

Solution:

We achieved using DetailsExpand event of the parent grid. In detailsExpand event we can get the inner array object corresponding to the parent record and assign that data to the childGrid in the load event of the childgrid.

The following code example demonstrates how to bind parent grid dataSource inner array as dataSource for child grid:

JS:

1. Render the Grid Control.

 

MVC:

 

ASP.NET CORE:

 

Angular:

 

TS File:

 

JS:

2. In detail expand event we store inner array object of corresponding parent record to the window.childData and assign that data to the childGrid in the load event of the childgrid.

 

 

Result:

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8311 01/17/2018 01/17/2018 JavaScript ejGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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