This explains that collapsing all Group Caption Rows at initial Rendering of ejGrid.
We can collapse all the Group Caption Rows at initial rendering using dataBound event and collapseAll method of ejGrid. The dataBound event will be triggered when the grid is bound with data at initial rendering. In this event we have to use collapseAll method to collapse all the group caption rows.
To collapse all the Group Caption Rows during paging we have to use actionComplete event and collapseAll method of ejGrid. The actionComplete event will be triggered for every grid action success event. In this event we need to check the requestType as paging and call the collapseAll method.
The following code example demonstrates how to collapse all Group Caption rows at initial rendering and paging:
1. Render the Grid Control.
For angular platform use ngAfterViewInit event instead of dataBound event
2. In actionComplete and dataBound event we used the collapseAll method of ejGrid to collapse all Grid Rows.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|