Skip to content

Grouping

The Grouping class is used to define grouping in RecordsView control.

Constructor:

  • constructor(field: string | Field)
    Creates a Grouping object instance. Field parameter can be a text or a field object like Contract.amount.

Example 1
this.recordView.grouping = Contract.amount;
Example 2
this.recordView.grouping = [Contract.amount, Contract.date];
Example 3
// if recordView has multiple tabs
this.recordView.grouping = [  
    [Contract.amount, Contract.date], // 1st tab grouping  
    [Customer.name]                   // 2nd tab grouping  
];  
Example 4
// if recordView has details with details
this.recordView.grouping = [
    Contract.amount,        // 1st level grouping
    [Note.date, Note.text]  // detail level grouping    
];