Row grouping allows to segregate or group rows with common values of some chosen fields together. It works similar to group by sql queries in database.
groupModel.dataIndx
as array of field names.
e.g.,
groupModel.dataIndx = ['ShipCountry', 'ContactName']
groupModel.showSummary
option )groupModel.summaryInTitleRow
option ).Row grouping columns ( ShipCountry and Customer name ) and summary columns ( Freight ) are sorted as a whole when their header cells are clicked.
Other columns are sorted within the groups when their header cells are clicked.
These cells can be sorted as a whole by pressing Ctrl
key along with click on header cell.
groupModel to specify grouping options during initialization
Group to modify grouping options in run time.
and group related events