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.
The following code example demonstrates how to open the child grid or details row in the initial rendering and also after every grid action.
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:|