Grouping

Enable grouping


new FancyGrid({
  ...
  grouping: {
    by: 'model'
  },
  ...

Param by is data index by which to group data.

Collapse rows on start


new FancyGrid({
  ...
  grouping: {
    by: 'model',
	collapsed: true
  },
  ...

Param collapsed is for collapsing rows on start.

Row text template


new FancyGrid({
  ...
  grouping: {
    by: 'model',
	tpl: 'Kia {text}:{number}'
  },
  ...

Param tpl is group row text template.
For template it is avaliable 2 property: text and number.

See also

Sample on JSFiddle
Method addGroup
Method clearGroup

`