Search results

IGroupSettings API in JavaScript Pivotfieldlist API control

Allows specific fields to group their data on the basis of their type. For example, the date type fields can be formatted and displayed based on year, quarter, month, and more. Likewise, the number type fields can be grouped range-wise, such as 1-5, 6-10, etc. You can perform custom group to the string type fields that used to displayed in the pivot table.

Properties

caption

string

It allows to set the caption to custom field that will be used to created from custom group fields in the pivot table.

It is applicable only for custom grouping.

customGroups

ICustomGroups[]

It allows to set the custom group information to create custom group fields.

It is applicable only for custom grouping.

endingAt

Date | number | string

It allows to set the start value/date to group fields to the specified range that to be displayed in the pivot table.

groupInterval

DateGroup[]

It allows to specify the date group intervals such as years or quarter or months or days or hours or minutes or seconds to group fields based on that in the pivot table. They options are:

  • Years - Specifies the group as years.
  • Quarters - Specifies the group as quarters.
  • Months - Specifies the group as months.
  • Days - Specifies the group as days.
  • Hours - Specifies the group as hours.
  • Minutes - Specifies the group as minutes.
  • Seconds - Specifies the group as seconds.

    It is applicable only for date type grouping.

name

string

It allows to set the specific field name to apply group settings.

rangeInterval

number

It allows to set the interval range to group field based on the specified range.

It is applicable only of number type grouping.

startingAt

Date | number | string

It allows to set the start value/date to group fields from the specified range that to be displayed in the pivot table.

type

GroupType

It allows to set the type as date or number or custom to the specified field for apply grouping. The types are:

  • Date - Defines group type as ‘Date’ for date type field
  • Number - Defines group type as ‘Number’ for numeric type field.
  • Custom - Defines group type as ‘Custom’ for custom group field.