See the Pen Enable grouping programmatically by christianacca (@christianacca) on CodePen.