WebGrid provides a set of comprehensive client side API to let developers extend the Grid for their own use. You can access Grid's properties and methods easily with similar server side syntax.
Here is the example on how to collapse child row using client side API: