You can bind the childGrid data source dynamically by using the following two ways.
By using ajax call in the Load event of the child grid:
You can bind the child Grid datasource through the ajax call by using load event of the child grid.
Grid Rendering Code:
By using the detailsExpand client side event of the Grid:
Child Grid is rendered once the parent Grid gets expanded. You can dynamically change/bind the data source to the child Grid after expanding the parent Grid by using the detailsExpand client side event of the Grid.
Refer to the following code example.
detailsExp Script code:
Here, the data source is bound to the child Grid through detailsExpand client side event of the Grid.
Figure 1:Binding dataSource dynamically to child grid
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|