Docs
API
  • addGroup(dataIndex: String, [expanded: Boolean])

    Adds group by index.

    To use this method it requires to set property grouping: true or grouping: {}

    If expanded is not true than all groups will be collapsed.

    Example

    
    var grid = new FancyGrid({
      ...
      grouping: true
      ...
    });
    
    grid.addGroup('team');
    

    See also

    Sample on JSFiddle
    Method clearGroup
    Doc link Grouping