Close other open row groups, only allowing one row group on each level to be open at a time
This example uses the rowGroupOpened event to manually close all other row groups on the same level when one is opened. This will provide the functionality of only having one possible group open on each level at any given time.
Similar to above, but this time only the 2nd level groups are prevented to have one row group to be expanded at a time
This example shows the usage of rowGroupOpened event, in the case that the user wants to trigger other row groups on the same level to be closed when a new one is opened.