Grid, by default has the expandCollapse() method to perform the expand or collapse operation dynamically.
The following code example demonstrates how to dynamically collapse the selected rows that are expanded in Grid by using button.
The following screenshot displays the dynamic collapse in Grid by using expandCollapse() method.
Dynamic collapse by using expandCollapse() method
This page will automatically be redirected to the sign-in page in 10 seconds.