Pivot class

Pivot(client, oOptionsopt)

new Pivot(client, oOptionsopt)

The ExPivot/JS is our approach to provide data summarization, as a pivot table. A pivot-table can automatically sort, count, total or give the average of the data stored in one table or spreadsheet. The user sets up and changes the summary's structure by dragging and dropping fields graphically. The ExPivot/JS is a HTML standalone-component, written in JavaScript, that uses no third-party libraries.
The ExPivot/JS component supports/inherits all objects, properties, members, methods and events of the ExTree/JS component.

Every option of the exontrol.Tree.Options or Pivot.Options type has associated a property of the control. For instance, the option:

allowActions {string}, customizes the actions the user can perform once the user clicks or touches the control
is associated with the property:
AllowActions {string}, customizes the actions the user can perform once the user clicks or touches the control
which means that the following statements are equivalent:
oPivot.Options = {allowActions: "scroll"}
oPivot.SetOptions({allowActions: "scroll"})
oPivot.AllowActions = "scroll"
oPivot.SetAllowActions("scroll")
where oPivot is an object of Pivot type
Parameters:
Name Type Attributes Description
client any The client parameter indicates the control's client area as:
  • array of [x,y,width,height] type that specifies the control's client area
  • string, that specifies the identifier of the canvas within the document, so the canvas's client area becomes the control's client area
  • HTMLCanvasElement, that specifies the identifier of the canvas within the document, so the canvas's client area becomes the control's client area
oOptions object <optional>
An object of exontrol.Tree.Options type that defines different options to display the control. Additionally, it supports all fields of Pivot.Options class.
Requires:
  • module:exontrol.commmon.min.js
  • module:exontrol.tree.min.js
  • module:exontrol.menu.min.js

Requires

  • module:exontrol.commmon.min.js
  • module:exontrol.tree.min.js
  • module:exontrol.menu.min.js

Classes

CustomViewOptions
MiscellaneousOptions
Options
Options

Members

(static, readonly) ColumnsFloatBarVisibleEnum :number

The Pivot.ColumnsFloatBarVisibleEnum type indicates the type of columns, the columns floatbar can display. The ColumnsFloatBarVisible property shows or hides the control's floatbar. The floatbar displays the header of each sorted/grouped-columns. The floatbar can be shown as docked to the right side of the control, or as floated over the control. The floatbar can display groupable columns, hidden columns, or a check-box for each column to show/hide the column. The ColumnsFloatBarSortOrder property specifies the sort order to show the columns within the columns float bar.

Each ColumnsFloatBarVisibleEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "GroupBy,BarFloat" is equivalent to the numeric value 257, or to the combination of enumeration constants exColumnsFloatBarVisibleIncludeGroupByColumns | exColumnsFloatBarFloat.

Type:
  • number
Properties:
Name value Type Description
exColumnsFloatBarHidden 0 number The columns floatbar is hidden
exColumnsFloatBarVisible 1 number The columns floatbar is visible (inside and anchored to the right-side of the control)
exColumnsFloatBarVisibleIncludeGroupByColumns 1 number The columns floatbar is visible, and it displays dragable (AllowDrag property) and groupable (AllowGroupBy property) columns of the control.
exColumnsFloatBarVisibleIncludeCheckColumns 2 number The columns floatbar is visible, and it displays dragable (AllowDrag property), and a check-box for each Column to update its Visible property.
exColumnsFloatBarVisibleIncludeHiddenColumns 4 number The columns floatbar is visible, and it displays dragable (AllowDrag property) and hidden (Visible property) columns of the control.
exColumnsFloatBarFloat 256 number The columns floatbar is visible (shows as floated)

(static, readonly) CustomView :CustomView

The Pivot.CustomView type provides a customized view for the pivot or an alternative way to display the data, such as graphical charts. The control's custom view is defined by the CustomViewOptions object, which is hold by the customView option of the Pivot.Options class. The control's custom view is visible only if the 'visible' option of the CustomViewOptions object is set to true and the 'object' property of the CustomViewOptions object is configured. Once the onviewchange event occurs, the following properties are updated:
  • Data property, {array} retrieves the data to be represented (the pivot-table) as a 2-dimensional array
  • Columns property, {string} retrieves the names of the columns, represented as a comma-separated list
  • Categories property, {number} retrieves the number of leading columns in Data that represent the categories
  • Series property, {number} defines the number of trailing columns in Data that represent the series
  • Stack property, {string} retrieves the name of the stack for each exported column (columns generated from the same pivot-column are grouped together in a stack), represented as a comma-separated list
  • Items property, {number} retrieves the number of rows in Data
Type:
Since:
  • 4.4

(static, readonly) CustomViewVisibleEnum :number

The Pivot.CustomViewVisibleEnum type defines the visibility modes for the control's custom view and default view. It determines whether the custom view is hidden, fully visible, or displayed alongside the default view with a horizontal or vertical splitter.
Type:
  • number
Properties:
Name value Type Description
exHidden false number The control's custom view is hidden, and the default view is visible.
exVisible true number The control's custom view is visible, and the default view is hidden.
exHSplit 2 number Both the control's custom view and default view are visible, separated by a horizontal splitter.
exVSplit 3 number Both the control's custom view and default view are visible, separated by a vertical splitter.
Since:
  • 4.4

(static, readonly) FilterBarVisibleEnum :number

The Pivot.FilterBarVisibleEnum type defines whether the control's filter-bar is visible or hidden. The FilterBarVisible property shows or hides the control's filter-bar. The filter-bar is displayed only if the control's FilterBarVisible property includes exFilterBarVisible or exFilterBarPromptVisible flags, or if any filter is applied and the FilterBarVisible property includes exFilterBarHidden flag. The onfilter event notifies your application once the control's filter has been changed.

Each FilterBarVisibleEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "Prompt,Compact,Top" is equivalent to the numeric value 6145, or to the combination of enumeration constants exFilterBarPromptVisible | exFilterBarCompact | exFilterBarTop.

Type:
  • number
Properties:
Name value Type Description
exFilterBarHidden 0 number No filter bar is shown while there is no filter applied. The control's filter bar is automatically displayed as soon a a filter is applied.
exFilterBarPromptVisible 1 number The exFilterBarPromptVisible flag specifies that the control's filter bar displays the filter prompt. The exFilterBarPromptVisible, exFilterBarVisible, exFilterBarCaptionVisible flag , forces the control's filter-prompt, filter bar or filter bar description ( even empty ) to be shown. If missing, no filter prompt is displayed. The FilterBarPrompt property to specify the HTML caption being displayed in the filter bar when the filter pattern is missing.
exFilterBarVisible 2 number The exFilterBarVisible flag forces the control's filter bar to be shown, no matter if any filter is applied. If missing, no filter bar is displayed while the control has no filter applied.
exFilterBarCaptionVisible 4 number The exFilterBarCaptionVisible flag forces the control's filter bar to display the FilterBarCaption property.
exFilterBarSingleLine 16 number The exFilterBarSingleLine flag specifies that the caption on the control's filter bar is displayed on a single line. The exFilterBarSingleLine flag , specifies that the filter bar's caption is shown on a single line, so
HTML tag or \r\n are not handled. By default, the control's filter description applies word wrapping. Can be combined to exFilterBarCompact to display a single-line filter bar. If missing, the caption on the control's filter bar is displayed on multiple lines. You can change the height of the control's filter bar using the FilterBarHeight property.
exFilterBarToggle 256 number The exFilterBarToggle flag specifies that the user can close the control's filter bar ( resets the control's filter ) by clicking the close button of the filter bar or by pressing the CTRL + F, while the control's filter bar is visible. If no filter bar is displayed, the user can display the control's filter bar by pressing the CTRL + F key. While the control's filter bar is visible the user can navigate though the list or control's filter bar using the ALT + Up/Down keys. The exFilterBarToggle flag must be combined with exFilterBarPromptVisible, exFilterBarVisible or exFilterBarCaptionVisible.
exFilterBarShowCloseIfRequired 512 number The exFilterBarShowCloseIfRequired flag indicates that the close button of the control's filter bar is displayed only if the control has any currently filter applied.
exFilterBarShowCloseOnRight 1024 number The exFilterBarShowCloseOnRight flag specifies that the close button of the control's filter bar should be displayed on the right side.
exFilterBarCompact 2048 number The exFilterBarCompact flag compacts the control's filter bar, so the filter-prompt will be displayed to the left, while the control's filter bar caption will be displayed to the right. This flag has effect only if combined with the exFilterBarPromptVisible. This flag can be combined with the exFilterBarSingleLine flag, so all filter bar will be displayed compact and on a single line.
exFilterBarShort 4096 number The exFilterBarShort flag specifies that the control's filter bar is displayed only on the default-view (has effect if the control displays multiple views)
exFilterBarTop 8192 number The exFilterBarTop flag specifies that the control's filter bar is displayed at the top of the control. If missing, the control's filter bar is displayed at the bottom of the control.
exFilterBarPromptOnEnter 16384 number The exFilterBarPromptOnEnter flag controls whether the filter prompt is applied when the user presses the Enter key. If this flag is set, the filter is applied only when Enter is pressed while the control's filter prompt has focus. If the flag is not set, the filter is applied after 500 ms of inactivity

(static, readonly) FilterIncludeEnum :number

The Pivot.FilterIncludeEnum indicates the type of columns, the columns floatbar can display. The FilterInclude property specifies the items to include once the control's filter is applied. For instance, the exItemsWithChilds value specifies that the items that match the filter and their child-items are included once the control's filter is applied. The exMatchIncludeParent flag specifies that the item matches the filter if any of its parent-item matches the filter. The exMatchIncludeParent flag can be combined with any other value. For instance, exMatchIncludeParent | exMatchingItemsOnly displays only the items that match the filter including the child-items as well.

Each FilterIncludeEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "ItemsOnly,Parent" is equivalent to the numeric value 244, or to the combination of enumeration constants exMatchingItemsOnly | exMatchIncludeParent.

Type:
  • number
Properties:
Name value Type Description
exItemsWithoutChilds 0 number Items (and parent-items) that match the filter are shown (no child-items are included)
exItemsWithChilds 1 number Items (parent and child-items) that match the filter are shown
exRootsWithoutChilds 2 number Only root-items (excludes child-items) that match the filter are displayed
exRootsWithChilds 3 number Root-items (and child-items) that match the filter are displayed
exMatchingItemsOnly 4 number Shows only the items that matches the filter (no parent or child-items are included)
exMatchIncludeParent 240 number The exMatchIncludeParent flag specifies that the item matches the filter if any of its parent-item matches the filter. The exMatchIncludeParent flag can be combined with any other value. For instance, exMatchIncludeParent | exMatchingItemsOnly displays only the items that match the filter including the child-items as well

(static, readonly) FilterListEnum :number

The Pivot.FilterListEnum type specifies the type of items being included in the column's drop down list filter. The FilterList property specifies whether the column's drop down filter list includes visible or all items. The Filter property filters for items based on values within this column. The FilterType property specifies the type of filter being applied to the column.

Each FilterListEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "Visible,Check,Asc" is equivalent to the numeric value 369, or to the combination of enumeration constants exVisibleItems | exShowCheckBox | exSortItemsAsc.

Type:
  • number
Properties:
Name value Type Description
exAllItems 0 number The filter's list includes all items in the column.
exVisibleItems 1 number The filter's list includes only visible (filtered) items from the column. The visible items include child items of collapsed items.
exNoItems 2 number The filter's list includes no item from the column.
exLeafItems 3 number The filter's list includes the leaf items only. A leaf item is an item with no child items.
exRootItems 4 number The filter's list includes the root items only. A root item has no parent item.
exSortItemsDesc 16 number Sorts descending the items of the filter's list. If none of the exSortItemsAsc or exSortItemsDesc is present, the list is built as the items are displayed in the control.
exSortItemsAsc 32 number Sorts ascending the items of the filter's list. If none of the exSortItemsAsc or exSortItemsDesc is present, the list is built as the items are displayed in the control.
exShowCheckBox 256 number Displays a check-box for each item within the filter's list.
exShowExclude 8192 number Shows or hides the Exclude-checkbox. The exFilterExclude flag excludes programmatically the selected items in the drop down filter panel.
exShowBlanks 16384 number The filter's list includes (Blanks) and (NonBlanks) items

(static, readonly) FilterPromptEnum :number

The Pivot.FilterPromptEnum type specifies the type of filter-prompt. The FilterBarPromptType property gets or sets the type of the control's filter-prompt, as a value of the Pivot.FilterPromptEnum enumeration.

Each FilterPromptEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "ContainsAll,Case,Start" is equivalent to the numeric value 4353, or to the combination of enumeration constants exFilterPromptContainsAll | exFilterPromptCaseSensitive | exFilterPromptStartWords.

Type:
  • number
Properties:
Name value Type Description
exFilterPromptContainsAll 1 number The list includes the items that contains all specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
exFilterPromptContainsAny 2 number The list includes the items that contains any of specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
exFilterPromptStartWith 3 number The list includes the items that starts with any specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
exFilterPromptEndWith 4 number The list includes the items that ends with any specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
exFilterPromptPattern 16 number The filter indicates a pattern that may include wild characters to be used to filter the items in the list. The FilterBarPromptPattern property may include wild characters as follows: '?' for any single character '*' for zero or more occurrences of any character '#' for any digit character ' ' space delimits the patterns inside the filter The exFilterPromptPattern flag can be combined with exFilterPromptCaseSensitive only
exFilterPromptCaseSensitive 256 number Filtering the list is case sensitive. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith, exFilterPromptEndWith or exFilterPromptPattern.
exFilterPromptStartWords 4608 number The list includes the items that starts with specified words, in any position. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith or exFilterPromptEndWith.
exFilterPromptEndWords 8704 number The list includes the items that ends with specified words, in any position. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith or exFilterPromptEndWith.
exFilterPromptWords 12800 number The filter indicates a list of words. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith or exFilterPromptEndWith.

(static, readonly) FilterTypeEnum :number

The Pivot.FilterTypeEnum type defines the type of filter applies to a column. The FilterList property specifies whether the column's drop down filter list includes visible or all items. The Filter property filters for items based on values within this column. The FilterType property specifies the type of filter being applied to the column.

Each FilterTypeEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "Pattern,Case,Exclude" is equivalent to the numeric value 497, or to the combination of enumeration constants exPattern | exFilterDoCaseSensitive | exFilterExclude.

Type:
  • number
Properties:
Name value Type Description
exAll 0 number No filter is applied
exBlanks 1 number Includes only blank/empty items
exNonBlanks 2 number Includes only non blank/empty items
exPattern 3 number Includes only items that match the pattern. The Filter property defines the pattern. A pattern may contain the wild card characters '?' for any single character, '*' for zero or more occurrences of any character, '#' for any digit character, and [chars] indicates a group of characters. If any of the *, ?, # or | characters are preceded by a \ ( escape character ) it masks the character itself. Can be combined with exFilterDoCaseSensitive flag
exDate 4 number Includes only items that fit the date interval. The Filter property of the Column object defines the interval of dates being used to filter items. The interval of dates should be as [dateFrom] to [dateTo]. If the dateFrom value is missing, the control includes only the items before the dateTo date, if the dateTo value is missing, the control includes the items after the dateFrom date. If both dates ( dateFrom and dateTo ) are present, the control includes the items between this interval of dates. For instance, the "2/13/2004 to" includes all items after 2/13/2004 inclusive, or "2/13/2004 to Feb 14 2005" includes all items between 2/13/2004 and 2/14/2004.
exNumeric 5 number Includes only items of numeric type that check the expression. The expression supports operators like <, <=, =, <>, >= or > and numbers to define rules. For instance, the "> 10 < 100" filter indicates all numbers greater than 10 and less than 100.
exCheck 6 number Includes only checked-items, while Filter property is "1" or unchecked-items if Filter is "0"
exImage 10 number Includes only items that match the images within the Filter property.
exFilter 240 number Includes only items that match the Filter property. Can be combined with exFilterDoCaseSensitive flag
exFilterDoCaseSensitive 256 number By default, the column's filter is case-insensitive. Specifies a case-sensitive column's filter. Can be combined with exPattern or exFilter flag
exFilterExclude 512 number The flag indicates that the Exclude-checkbox of the column is checked. The flag indicates that the items that match the filter are excluded from the list.

(static, readonly) GridLinesEnum :number

The Pivot.GridLinesEnum type defines the control's grid lines. The DrawGridLines property shows or hides the control's grid-lines. The DrawGridLines property pecifies whether the control's grid-lines are visible or hidden.

Each GridLinesEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "H,V" is equivalent to the numeric value 3, or to the combination of enumeration constants exHLines | exVLines.

Type:
  • number
Properties:
Name value Type Description
exNoLines 0 number The control displays no grid lines.
exAllLines -1 number The control displays vertical and horizontal grid lines.
exRowLines -2 number The control shows grid lines for existing rows only.
exHLines 1 number The control displays only the horizontal grid lines.
exVLines 2 number The control displays only the vertical grid lines.

(static, readonly) HeaderVisibleEnum :number

The Pivot.HeaderVisibleEnum type specifies whether the control's header is visible or hidden. The HeaderVisible property shows or hides the control's header. The header displays the header of each visible-columns.

Each HeaderVisibleEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "Extend" is equivalent to the numeric value 1, or to the combination of enumeration constants exHeaderVisibleExtendLevels.

Type:
  • number
Properties:
Name value Type Description
exHeaderHidden 0 number The control's header is hidden.
exHeaderVisible -1 number The control's header is visible.
exHeaderVisibleExtendLevels 1 number The control's header is visible, and each column's header is extended to cover all levels of the header

(static, readonly) LinesAtRootEnum :number

The Pivot.LinesAtRootEnum type defines how the control displays the lines at root. The LinesAtRoot property defines the way the tree lines are shown. The HasLines property defines the type of the line to be shown. The HasButtons shows or hides the expand/collapse glyphs for parent items.
Type:
  • number
Properties:
Name value Type Description
exNoLinesAtRoot 0 number No lines at root items
exLinesAtRoot -1 number The control links the root items
exGroupLinesAtRoot 1 number The control shows no links between roots, and divides them as being in the same group
exGroupLines 2 number The lines between root items are no shown, and the links show the items being included in the group
exGroupLinesInside 3 number The lines between root items are no shown, and the links are shown between child only
exGroupLinesInsideLeaf 4 number The lines between root items are no shown, and the links are shown for first and last visible child item
exGroupLinesOutside 5 number The lines between root items are no shown, and the links are shown for first and last visible child item. A parent item that contains flat child items only, does not indent the child part. By a flat child we mean an item that does not contain any child item

(static, readonly) LockItemEnum :number

The Pivot.LockItemEnum type specifies the section of the control where the item is placed. The Lock property locks or unlocks the item, placing it at the top, bottom, or making it scrollable

Each LockItemEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A case-insensitive partial string containing a name that matches the enumeration constant.

For instance, the string "Top" is equivalent to the numeric value -1, corresponding to the enumeration constant exLockTop.

Type:
  • number
Properties:
Name value Type Description
exLockTop -1 number The item is locked at the top of the control.
exUnlock 0 number The item is not locked and scrolls with the content.
exLockBottom 1 number The item is locked at the bottom of the control.
Since:
  • 4.6

(static, readonly) PivotBarVisibleEnum :number

The Pivot.PivotBarVisibleEnum type specifies options/flags/properties of the control's pivot bar. The pivot bar is a user interface element that allows users to customize the layout of the pivot table by dragging and dropping fields. The PivotBarVisibleEnum type includes various flags that control the visibility, behavior, and features of the pivot bar, such as whether it is hidden or visible, whether it is sizable or floating, whether it shows totals/subtotals, and whether it allows certain user interactions like undo/redo or resizing columns. The PivotBarVisible property shows or hides the control's pivot bar (it displays the layout of the pivot-table).

Each PivotBarVisibleEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more compatible enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "visible,sizable,autofit" is equivalent to the numeric value 11, or to the combination of enumeration constants exPivotBarVisible | exPivotBarSizable | exPivotBarAutoFit.

Type:
  • number
Properties:
Name value Type Description
exPivotBarHidden 0 number The control's pivot bar is hidden. Set this value, to hide the control's pivot bar (the pivot bar displays the layout of the pivot-table).
exPivotBarVisible 1 number The control's pivot bar is visible. Include or exclude this flag to show or hide the control's pivot bar.
exPivotBarSizable 2 number The pivot bar is sizable. Include or exclude this flag to allow or prevent resizing the pivot bar at runtime. If this flag is present, the user can resize the pivot bar by dragging the bottom side of the control. The resize cursor is shown when the pivot bar is resizable and cursor hovers the bottom side of the pivot bar.
exPivotBarFloat 4 number The pivot bar is shown into a floating window. Include this flag, to display the control's pivot bar to a separate window (a floating panel)
exPivotBarAutoFit 8 number The pivot bar's height is updated automatically so all elements fits the client area (When this flag is present, the height of the pivot's bar is automatically adjusted so the entire content fits the header).
exPivotBarShowTotals 16 number The pivot bar shows the total/sub-total fields. Include or exclude this flag to show or hide the Total field in the pivot bar.
exPivotBarAutoHide 32 number Shows the pivotbar as soon as the cursor hovers it, and hides it as soon as the cursor leaves it
exPivotBarAllowValues 64 number Specifies if the user can drop values of the columns to the pivot bar.
exPivotBarAllowFormatAppearance 128 number Specifies if the user can select a different appearance for columns or total/subtotal fields.
exPivotBarAllowFormatConditionalAppearance 16777216 number Specifies if the user can select conditional appearance for columns.
exPivotBarAllowFormatContent 256 number Specifies if the user can select the way the column's data is displayed.
exPivotBarAutoUpdate 512 number Indicates whether the control' list is automatically updated once the user drops objects in the pivot bar.
exPivotBarAllowUndoRedo 1024 number Indicates if the pivot bar allows Undo/Redo operations, if the user presses the CTRL+Z/Y. The control restores the previously layout once the user presses the CTRL + Z keys combination. The control restores the next layout once the user presses the CTRL + Y keys combination. Exclude this flag, and the Undo/Redo feature is disabled.
exPivotBarAllowResizeColumns 2048 number Indicates if the user can resize the columns in the pivot bar. This flag affects the columns to be displayed of the pivot bar, not the columns to be displayed in the control's list.
exPivotBarHideAddNew 4096 number Prevents showing the add new buttons in the pivot bar. Clicking the Add New button displays a list of columns or aggregate functions that can be added in the current context.
exPivotBarContextSortAscending 65536 number Shows the columns alphabetically in ascending order. This flag can be combined with exPivotBarContextSortReverse and so, the columns will be alphabetically displayed in descending order.
exPivotBarContextSortReverse 1048576 number Shows the columns in reverse order. This flag can be combined with exPivotBarContextSortAscending and so, the columns will be alphabetically displayed in descending order.
exPivotBarReadOnly 268435456 number Makes the pivot bar read only, so no changes are allowed.
exPivotBarSingleAggregate 536870912 number Restructures the pivot-bar into three sections: a pivot-rows section docked to the left, a pivot-columns section docked to the top-right, and a top-left corner section for defining the column and aggregate function for the pivot table In single-aggregate mode, the control is divided into four sections:
  • top-left corner, displays the aggregate function applied to pivot cells (first pivot-column of Pivot.Options.pivotColumns property defines the aggregate function)
  • left header, represents the pivot-rows section, defining row groupings (as defined by Pivot.Options.pivotRows property)
  • top-header, represents the pivot-columns section, defining column groupings (as defined by Pivot.Options.pivotColumns property)
  • client area, displays the pivot result or the custom-view, as defined by CustomView property
In single-aggregate mode:
  • the PivotColumns property always contains more than one element. For example, if you set the PivotColumns property to an empty string, it is automatically set to "count(0)", which represents the count of the first column.
  • the total/sub-total items layout elements have no effect
  • it is recommended to set the ShowBranchRows property on exBranchColumns

(static, readonly) ShowBranchRowsEnum :number

The Pivot.ShowBranchRowsEnum type indicates how the branch rows displays the information. The ShowBranchRows property specifies how the branch rows display information. The branch rows are the rows generated from the pivot rows (group-by columns). The ShowBranchRowsEnum type includes various flags that control how the branch rows display information, such as whether they are displayed in a tree structure with +/- buttons for expanding and collapsing nodes (exBranchTree), whether a new column is added for each pivot row column without displaying +/- buttons (exBranchColumns), whether the branch rows display information across the entire line (exBranchRowDivider), and whether the branch rows display result of aggregate function (exBranchIncludeAggregate).

Each ShowBranchRowsEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more compatible enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "columns,aggregate,divider" is equivalent to the numeric value 51, or to the combination of enumeration constants exBranchColumns | exBranchIncludeAggregate | exBranchRowDivider.

Type:
  • number
Properties:
Name value Type Description
exBranchTree 1 number The exBranchTree mode presents data in a tree structure, with +/- buttons for expanding and collapsing nodes. In exBranchTree mode, the Pivot.Options.pivotRows property is represented into a single column. When this flag is combined with exBranchIncludeAggregate, the rows are organized into a tree structure with +/- buttons, and the aggregate function results are included in the branch rows. The ShowIdem property defines the symbol used to indicate repeated captions, providing a clear visual cue for identical entries.
exBranchColumns 3 number In exBranchColumns mode, a new column is added for each pivot row column without displaying +/- buttons. In exBranchColumns mode, a new column is added for each pivot row column without displaying +/- buttons. The Pivot.Options.pivotRows property is represented into multiple-columns. This flag cam be combined with the exBranchRowDivider or exBranchIncludeAggregate flag. When combined with exBranchIncludeAggregate, the rows are organized into a tree structure without displaying the +/- buttons. As a result, when a pivot row is sorted, the parent and its sibling rows are also sorted, along with all child items under the same parent. The ShowIdem property defines the symbol used to indicate repeated captions, providing a clear visual cue for identical entries.
exBranchRowDivider 16 number The branch rows display information across the entire line. The exBranchRowDivider flag can only be combined with the exBranchTree or exBranchColumns flags.
exBranchIncludeAggregate 32 number The branch rows displays result of aggregate function. The exBranchIncludeAggregate flag can only be combined with the exBranchTree or exBranchColumns flags.
Since:
  • 4.1

(static, readonly) SingleSelEnum :number

The Pivot.SingleSelEnum type defines flags the singleSel/SetSingleSel/GetSingleSel method uses. The SingleSel property gets or sets the control's selection to single, multiple or toggle. The SingleSel property accepts an OR combination of Pivot.SingleSelEnum flags that specifies how user can select items.

Each SingleSelEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "Enable,Single,Toggle" is equivalent to the numeric value 7, or to the combination of enumeration constants exEnableSel | exSingleSel | exToggleSel.

Type:
  • number
Properties:
Name value Type Description
exDisableSel 0 number The exDisableSel value specifies that the control's selection is disabled.
exEnableSel 1 number The exEnableSel flag specifies that the control's selection is enabled (multiple-selection, unless the exSingleSel is set ).
exSingleSel 2 number The exSingleSel flag specifies that the user can select a item only.
exToggleSel 4 number The exToggleSel flag specifies that the item's selection state is toggled once the user clicks a item.
exDisableCtrlSel 8 number The exDisableCtrlSel flag disables toggling the item's selection state when user clicks a item, while CTRL modifier key is pressed.
exDisableShiftSel 16 number The exDisableShiftSel flag disables selecting items using the SHIFT key.
exDisableDrag 32 number The exDisableDrag flag disables selecting items by drag.

(static, readonly) SortOnClickEnum :number

The Pivot.SortOnClickEnum type specifies the action that control takes when the user clicks the column's header. The SortOnClick property indicates whether the column gets sorted once the user clicks its header as a value of exontrol.Pivot.SortOnClickEnum type.

Each SortOnClickEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A case-insensitive partial string containing a name that matches the enumeration constant.

For instance, the string "User" is equivalent to the numeric value 1, corresponding to the enumeration constant exUserSort.

Type:
  • number
Properties:
Name value Type Description
exNoSort 0 number The column is not sorted when user clicks the column's header.
exDefaultSort -1 number The column gets sorted when user the clicks the column's header.
exUserSort 1 number The control displays the sort icons, but it doesn't sort the column (not supported)

(static, readonly) SortOrderEnum :number

The Pivot.SortOrderEnum type specifies the column's sort order. The SetSortOrder() method changes the column's sort-order.

Each SortOrderEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A case-insensitive partial string containing a name that matches the enumeration constant.

For instance, the string "Asc" is equivalent to the numeric value 1, corresponding to the enumeration constant exSortAscending.

Type:
  • number
Properties:
Name value Type Description
exSortNone 0 number The column is not sorted.
exSortAscending 1 number The column is sorted ascending.
exSortDescending 2 number The column is sorted descending.

(static, readonly) SortTypeEnum :number

The Pivot.SortTypeEnum type specifies the types of sort-as the column supports. The SortType property defines whether the column gets sorted as string, number or date, or by value, state or image.

Each SortTypeEnum property can be specified in one of the following ways:

  • A numeric value.
  • A single enumeration constant.
  • A combination of one or more enumeration constants, separated by the | operator.
  • A case-insensitive partial string containing one or more comma-separated names that match the enumeration constants.

For instance, the string "Numeric,ByValue" is equivalent to the numeric value 17, or to the combination of enumeration constants exSortNumeric | exSortByValue.

Type:
  • number
Properties:
Name value Type Description
exSortString 0 number The column's content is sorted as string (by default).
exSortNumeric 1 number The column's content is sorted as numbers.
exSortDate 2 number The column's content is sorted as dates.
exSortByValue 16 number The column gets sorted by cell's value rather than cell's caption (the cell's caption include formatting)
exSortByState 32 number The column gets sorted by cell's state (checked, unchecked) rather than cell's caption (the cell's caption include formatting)
exSortByImage 48 number The column gets sorted by cell's image rather than cell's caption (the cell's caption include formatting)

(static, readonly) type :string

The type field holds the full name of the object, since constructor.name can differ in minimized or obfuscated code. This field is never altered by the control itself, so it can be reliably used to verify the object's type. It is particularly useful when multiple versions of a control exist or when you need to check the type without depending on constructor.name, which may be inconsistent in some scenarios, such as minified code. The Pivot.type member always returns "Pivot"
Type:
  • string
Since:
  • 1.8
Example
console.log(exontrol.Pivot.type); // logs "Pivot"

(static, readonly) version :string

The version field defines the version of the control. Each release of the control has a different version number, so you can use this field to check the control's version and ensure that it supports the features you want to use. The version field is especially useful when you have multiple versions of the control, or when you want to check the version of the control without relying on other properties or methods that may differ between versions. The current version is 4.9
Type:
  • string
Example
console.log(exontrol.Pivot.version); // displays the version of the control, for instance "4.9"

AllowActions :string

The AllowActions property defines a list of actions separated by comma that the user can perform by drag or click on the control's content. The order of the actions is very important, as the control checks each action from left to right until it finds a matching action for the performed mouse/touch event. The first matched action is performed, and the rest of the actions are ignored. So if you want to perform a specific action once the user clicks an item, and perform another action if the user clicks an area that does not contain any item, you should place the first action before the second one in the AllowActions property.

For instance:

  • "item-drag,scroll", the control performs the "item-drag" action once the user clicks an item and "scroll" action is possible only if the user clicks an area that does not contain any item
  • "scroll,item-drag", the "item-drag" action is never performed, as the "scroll" action is always matched first. The scroll by drag can be performed if the user clicks anywhere in the view no matter if an item is present or not

So each action should be placed in the allowActions field according to your needs.

The format of the property is:

"action(shortcut,shortcut,...),action(shortcut,shortcut,...)..."
where
  • "action", defines the action to perform (as defined below)

    Action Description Flags
    "column-drag" Moves a column to a new position. The onchange("drag-column") event occurs when the user repositions a column via drag-and-drop, if the column's AllowDrag property is true. Not available if the control is read-only.
    "column-resize" Resizes columns by drag. If no flags are used, resizing is possible in both view and header areas. Requires control and column to be editable. The onchange("resize-column") event notifies that a column has been resized via UI interaction.
    • [view], resizing possible in view area
    • [header], resizing possible in column header
    "edit" Edits the cell being clicked. The onchange("change-cell") event occurs when the cell's value has been changed through the UI. Not available if the control is read-only.
    "fit" Fits a dragged area into the control's client area.
    "item-drag" Moves items by drag. The onchange("drag-item") event occurs once the user moves the item by drag an drop. Not available if the control is read-only.
    • [position], item can be moved within group without changing parent
    • [keepIndent], preserves indentation when moved to any position or parent
    • [any], item can be moved freely
    "item-resize" Resizes items by drag. The onchange("resize-item") event is raised only when the item height is changed by dragging. Only available if the control is editable and item's allowSizing=true.
    • [all], resizing one item adjusts all resizable items; otherwise only dragged or selected items are resized
    "scroll" Scrolls the control's content by drag.
    • [view], scroll possible in view area
    • [header], scroll possible in header area
    "select" Selects items by drag.
    "zoom" Zooms the control content at the dragging point.

    The expivot/js control supports additional actions as listed in the table below:

    Action Description Flags
    "format" Formats the column at the cursor, including content, appearance, and conditional formatting.

    The exgantt/js control supports additional actions as listed in the table below:

    Action Description Flags
    "chart-create" Creates item-bars by drag. Not available if the control is read-only.
    • [name=xxx], defines the name/type of the item-bar to create (e.g., [name=Task])
    • [key=xxx], defines the key of the item-bar to create
    • [shape=xxx], specifies the shape of the create-bar element
    • [height=xxx], sets the height of the create-bar element in pixels
    • [empty], allows creating item-bars on empty items
    • [auto], automatically adds the created item-bar when drag ends
    • [zero], allows creating zero-length item-bars
    "chart-fit" Fits a portion of the chart by drag. Not available if the control is read-only.
    • [chart], operation possible when clicking the chart
    • [level], operation possible when clicking the chart header
    • [overview], operation possible when clicking the control's overview
    "chart-link" Links item-bars by drag. Not available if the control is read-only.
    • [toggle], removes the link if bars are already linked
    "chart-move" Moves or resizes item-bars by drag, including resizing the percent of the item-bar. Not available if the control is read-only.
    "chart-percent" Resizes the percent of item-bars by drag. Not required if "chart-move" is included. Not available if the control is read-only.
    "chart-resize" Resizes the chart's unit width by drag. Not available if the control is read-only.
    • [chart], operation possible when clicking the chart
    • [level], operation possible when clicking the chart header
    "chart-select" Selects item-bars by drag.
    • [item], selects items by drag as well
    • [click-item], selects items when clicked as well
    "chart-zoom" Scales and resizes the chart by drag. Not available if the control is read-only.
    • [chart], zoom possible when clicking the chart
    • [level], zoom possible when clicking the chart header
    • [overview], zoom possible when clicking the control's overview
    "item-drag" Moves items by drag. The onchange("drag-item") event occurs once the user moves the item by drag an drop. Not available if the control is read-only.
    • [view], operation possible when clicking the view
    • [chart], operation possible when clicking the chart
    • [position], item can be moved within group without changing parent
    • [keepIndent], preserves indentation when moved to any position or parent
    • [any], item can be moved freely
    "overview-selection-resize" Resizes the chart using left/right margins of the overview-selection (available since 2.4).
    • [unsmooth], resize occurs unit by unit instead of pixel by pixel
    "scroll" Scrolls the control's content by drag.
    • [view], scroll possible in view area
    • [header], scroll possible in header area
    • [chart], scroll possible when clicking the chart
    • [level], scroll possible when clicking the chart header
    "select" Selects items by drag.
    • [view], operation possible when clicking the view
    • [chart], operation possible when clicking the chart

  • "shortcut", defines the event's button or/and the modifier-keys that are required to perform the action. The "shortcut" is a combination of none, one or more of the following values:
    • "Shift", indicates that the SHIFT key is pressed
    • "Ctrl" or "Control", indicates that the CTRL key is pressed
    • "Alt" or "Menu", indicates that the ALT key is pressed
    • "Meta" , indicates that the META key is pressed
    • "LButton", specifies that the mouse's left-button is pressed
    • "RButton", specifies that the mouse's right-button is pressed
    • "MButton", specifies that the mouse's middle/wheel-button is pressed
    • "Long", specifies that the action requires a "long" click or touch before it begins
    • "Double", specifies that the action requires a "double" click before it begins (this flag is available for non-dragable actions only such as "edit")
    • "+", indicates AND between values
Type:
  • string
Example
null {null}, indicates the control's default allowActions value
"" {string}, specifies that no operation is allowed once the user clicks or touches the control
"scroll" {string}, specifies that only "scroll" operation is allowed, no matter of the event's button or modifier-keys is pressed.
"column-resize[view](LButton)" {string}, allows resizing the columns (inside the view), while pressing the mouse's left-button only
"column-drag(Shift+LButton),item-drag,scroll" {string}, indicates that dragging a column is possible only if the user presses the mouse's left-button while SHIFT key is pressed, and "item-drag" or "scroll" is possible no matter of the event's button or modifier-keys in this order (if one operation is not possible, the next one is performed).
AllowActions

AllowDrop :boolean

The AllowDrop property specifies whether the user can drag and drop local files into the control. By default, the AllowDrop property is set to false, so no file can be drop into the control. The control imports the file being dropped, using the Import method, based on the file extension.
Type:
  • boolean
Example
false {boolean}, no file can be drop into the control (default)
true {boolean}, the user can drag and drop files into the control
AllowDrop

AllowGroupBy :boolean

The AllowGroupBy property specifies whether the control supports group-by view. The group-by view is generated once the user drags a column to the control's group-by/sort bar. The SortBarVisible property must be true to display the group-by/sort bar. By default, the control does not support group-by view. The onaddgroupitem event is triggered for each item when a group-by view is generated. The onremoveitem event is triggered for each item when a group-by view is removed. The GroupItem property determines whether an item is a group item.
Type:
  • boolean
Example
false {boolean}, no group-view is generated once the user drags a column to the control's group-by/sort bar
true {boolean}, the control supports group-by view
AllowGroupBy

Background :BackgroundOptions

The Background property defines the display options to show different parts of the control. The Background property accepts a value of BackgroundOptions type that indicates the display options to show different parts of the control. The Shapes property gets or sets the visual-appearance for different parts of the control, such as header of the columns, rows or cells, and so on.
Type:
  • BackgroundOptions
Since:
  • 2.3
Background

ColumnAutoResize :boolean

The ColumnAutoResize property defines whether the control will automatically size its visible columns to fit on the control's client width. The ColumnAutoResize property indicates whether the control will automatically size its visible columns to fit on the control's client width. The Width property of each visible column is adjusted proportionally so that all visible columns fit exactly within the control's client area. The AllowSizing property specifies whether the column is resizable or fixed. The ColumnAutoResize property proportionally resizes visible columns with AllowSizing set to true so that they fit the control's width. By default, ColumnAutoResize is false, and visible columns are not automatically resized to fit the control.
Type:
  • boolean
Example
false {boolean}, no effect
true {number}, all visible columns are proportionally resized to fit the control's width
ColumnAutoResize

(readonly) Columns :Columns

The Columns property returns the control's columns. The Columns property is equivalent with GetColumns() method. The Add or Remove methods of the Columns object could be used to add or remove columns from the control. The Items property returns the control's items. The Add or Remove methods of the Items object could be used to add or remove items from the control. The Import or Data method loads data into the control, and the Export method extracts data from the control, all in a specific format. The ConditionalFormats property returns the control's conditional formats. The Add or Remove methods of the ConditionalFormats object could be used to add or remove conditional formats from the control.
Type:
Example
The following statements are equivalents:

 oPivot.GetColumns(), returns the control's columns
 oPivot.Columns, returns the control's columns
 
where oPivot is an object of Pivot type
Columns

ColumnsFloatBarCaption :string

The ColumnsFloatBarCaption property defines the caption of the columns float bar. The floatbar displays the header of each sorted/grouped-columns. The caption can include ex-HTML tags for formatting purposes. The ColumnsFloatBarVisible property shows or hides the control's floatbar. The ColumnsFloatBarSortOrder property defines the sort order to show the columns within the columns float bar. The ColumnsFloatBarCaption property is set to "Columns" by default.
Type:
  • string
Example
"" {string}, hides the caption of the columns float bar
"&lt;b&gt;Columns&lt;/b&gt;" {string}, displays in bold the caption of the columns float bar
ColumnsFloatBarCaption

ColumnsFloatBarSortOrder :number

The ColumnsFloatBarSortOrder property defines the sort order to show the columns within the columns float bar. The sort order can be ascending, descending or unsorted. The default sort order is unsorted. The sort order applies only to the columns float bar; it does not affect the order of the columns within the control. The ColumnsFloatBarVisible property must be set to a visible state to see the effect of this property. The ColumnsFloatBarSortOrder property can be set to one of the following values:
  • 0 {number}, show columns unsorted
  • 1 {number}, show columns in ascending order (by name)
  • 2 {number}, shows columns in descending order (by name)

The ColumnsFloatBarCaption property defines the caption of the columns float bar. By default, the ColumnsFloatBarSortOrder property is set to 0, which shows the columns unsorted.

Type:
  • number
Example
0 {number}, show columns unsorted
1 {number}, show columns in ascending order (by name)
ColumnsFloatBarSortOrder

ColumnsFloatBarVisible :Pivot.ColumnsFloatBarVisibleEnum

The ColumnsFloatBarVisible property shows or hides the control's floatbar. The floatbar displays the header of each sorted/grouped-columns. The floatbar can be shown as docked to the right side of the control, or as floated over the control. The floatbar can display groupable columns, hidden columns, or a check-box for each column to show/hide the column. The ColumnsFloatBarSortOrder property specifies the sort order to show the columns within the columns float bar. By default, the ColumnsFloatBarVisible property is set to exColumnsFloatBarHidden (0), which hides the columns float bar. The Pivot.ColumnsFloatBarVisibleEnum type supports the following values:
  • exColumnsFloatBarHidden(0), the columns floatbar is hidden
  • exColumnsFloatBarVisibleIncludeGroupByColumns(1), the columns floatbar is visible, and it displays dragable (AllowDrag property) and groupable (AllowGroupBy property) columns of the control.
  • exColumnsFloatBarVisibleIncludeCheckColumns(2), the columns floatbar is visible, and it displays dragable (AllowDrag property), and a check-box for each Column to update its Visible property (shor or hide the column).
  • exColumnsFloatBarVisibleIncludeHiddenColumns(4), the columns floatbar is visible, and it displays dragable (AllowDrag property) and hidden (Visible property) columns of the control.
  • exColumnsFloatBarFloat(0x100), the columns floatbar is shows as floated. This flag can be combined with exColumnsFloatBarVisibleIncludeHiddenColumns, exColumnsFloatBarVisibleIncludeCheckColumns or exColumnsFloatBarVisibleIncludeGroupByColumns type.

The ColumnsFloatBarCaption property defines the caption of the columns float bar. The ColumnsFloatBarSortOrder property defines the sort order to show the columns within the columns float bar.

Type:
Example
false {boolean} or 0 {number}, hides the columns float bar
true {boolean}, 1 or Pivot.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeGroupByColumns {number}, the columns float bar is visible and displays groupable columns
ColumnsFloatBarVisible

Conditional :ConditionalFormatOptions|Array.<ConditionalFormatOptions>

The Conditional property simultaneously defines all of the control's conditional formats. The conditional formatting feature enables you to apply formats to a cell or range of cells that dynamically change based on the cell's value or the result of a formula. The ConditionalFormats.Add method adds new conditional formats individually. The Conditional.Shape property defines the visual-appearance of the cell when the condition is met, and it accepts the same values of the Shapes property, such as backgroundColor, fontColor, fontStyle and so on.
Type:
Since:
  • 3.3
Example
{
   expression: "value &gt; 100",
   shape:
   {
     frameColor: "black"
   },
   applyTo: "Total"
 } {ConditionalFormatOptions}, highlights the cells in the 'Total' column with values greater than 100
Conditional

(readonly) ConditionalFormats :ConditionalFormats

The ConditionalFormats property returns the control's conditional formats. The conditional format allows changing the appearance of cells or items based on specific conditions. The ConditionalFormats property is equivalent with GetConditionalFormats() method. The Add or Remove methods of the ConditionalFormats object could be used to add or remove conditional formats from the control. The Conditional.Shape property defines the visual-appearance of the cell when the condition is met, and it accepts the same values of the Shapes property, such as backgroundColor, fontColor, fontStyle and so on.
Type:
Example
The following statements are equivalents:

 oPivot.GetConditionalFormats(), returns the control's conditional formats
 oPivot.ConditionalFormats, returns the control's conditional formats

where oPivot is an object of Pivot type
ConditionalFormats

CountLockedColumns :number

The CountLockedColumns property locks columns on both the left and right sides of the view using a single byte in {high, low} format. The low nibble (0-15) specifies the number of left-locked columns, while the high nibble (0-15) specifies the number of right-locked columns (locked columns are fixed in place and do not scroll with the rest of the content). The Shapes/GetShapes()/SetShapes(value) {string}, defines the shapes each part of the control can display, including the locked columns. By default, the control displays no locked-columns. The Item.Lock property locks or unlocks the item, placing it at the top, bottom, or making it scrollable. The ShowLockedItems property indicates whether the locked/fixed items are visible or hidden.
Type:
  • number
Example
0 {number}, indicates that the control displays no locked-columns
2 {number}, specifies that the first two-visible columns are locked (not scrollable and fixed to the left side of the control)
0x10 {number}, locks 1 column on the right (@since 4.6)
0x11 {number}, locks 1 column on the left and 1 on the right (@since 4.6)
CountLockedColumns

CrSize :number

The CrSize property gets or sets the size to show the check-box/radio-button. The CellHasCheck/GetCellHasCheck()/SetCellHasCheck(value) {boolean}, shows or hides check-box, or radio-buttons for all cells within the column. The Cell.HasCheck property shows or hides the cell's check-box or radio-button is visible or hidden. By default the check-box/radio-button size is 16x16 pixels.
Type:
  • number
Example
0 {number}, displays no check-box/radio-button
24 {number}, specifies a size of 24x24 to display the check-box/radio-button
CrSize

Cursors :string

The Cursors property specifies the mouse cursors assigned to the different parts of the control. These cursors determine how the pointer appears when hovering over specific areas, providing visual feedback and indicating interactive regions within the control. The change takes effect immediately. The cursors field customizes the mouse cursor appearance of the control. The Cell.Cursor property gets or sets the mouse cursor for the cell itself. The Column.CellCursor property gets or sets the mouse cursor for the column's body/data/cells. The Column.Cursor property gets or sets the mouse cursor for the column itself (column's header). The format of property is:
"cursor(part),cursor(part),..."
where:
  • "cursor", defines the CSS mouse cursor to display while cursor hovers the part
  • "part", defines the name of the part the cursor is applied on (as defined below)
The "cursor" can be any of the following:
Cursor Description
"alias"indicates a shortcut or alias will be created
"all-scroll"indicates scrolling in any direction
"auto"lets the browser decide the cursor based on context
"cell"indicates a table cell
"col-resize"indicates a column can be resized horizontally
"context-menu"indicates a context menu is available
"copy"indicates something will be copied
"crosshair"a precise crosshair cursor
"default"the default arrow cursor
"e-resize"resize east (right edge)
"ew-resize"resize horizontally
"grab"indicates an item can be grabbed
"grabbing"indicates an item is being grabbed
"help"indicates help information is available
"move"indicates something can be moved
"n-resize"resize north (top edge)
"ne-resize"resize northeast (top-right corner)
"nesw-resize"resize along the northeast–southwest axis
"no-drop"indicates dropping is not permitted
"not-allowed"indicates the action is not allowed
"ns-resize"resize vertically
"nw-resize"resize northwest (top-left corner)
"nwse-resize"resize along the northwest–southeast axis
"pointer"the pointer cursor (a hand with a pointing finger)
"progress"indicates background processing
"row-resize"indicates a row can be resized vertically
"s-resize"resize south (bottom edge)
"se-resize"resize southeast (bottom-right corner)
"sw-resize"resize southwest (bottom-left corner)
"text"the text selection cursor (I-beam)
"url(...)"uses a custom cursor image (with optional fallback)
"vertical-text"the vertical text selection cursor
"w-resize"resize west (left edge)
"wait"indicates the program is busy
"zoom-in"indicates zooming in
"zoom-out"indicates zooming out
The "part" can be any of the following:
Part Description
"anchor" (hyperlink)defines the mouse-cursor when the mouse pointer hovers the anchor (the <a> ex-HTML part marks an anchor or hyperlink element) (@since 2.2)
"cell"defines the mouse-cursor when the mouse pointer hovers any cell
"check"defines the mouse-cursor to be shown when the mouse pointer hovers the check-box/radio-button
"column"defines the mouse-cursor to show when the mouse pointer hovers the column's header
"column-drag"defines the mouse-cursor while the column is dragging
"column-filter"defines the mouse-cursor to show when the mouse pointer hovers the column's filter-button
"drag-drop"defines the cursor while the item is being dragged using the "drag-drop" action
"expand"defines the mouse-cursor to be shown when the mouse pointer hovers the expand/collapse glyphs
"filterBar-caption"defines the mouse-cursor to show when the mouse pointer hovers the filter-bar's caption field
"filterBar-caption-column"defines the mouse-cursor to show when the mouse pointer hovers a column of the filter-bar's caption field
"filterBar-close"defines the mouse-cursor to show when the mouse pointer hovers the filter-bar's close button
"filterBar-prompt"defines the mouse-cursor to show when the mouse pointer hovers the filter-bar's prompt label
"item"defines the mouse-cursor when the mouse pointer hovers any item
"item-drag"defines the cursor while the item is being dragged using the "item-drag" action
"long"specifies the mouse-cursor to be shown as soon as a "long" click or touch action begins (see allowActions field)
"no"defines the mouse-cursor to be shown when no operation is allowed (for instance, dropping the item is not allowed in this area)

The expivot/js control supports additional parts as listed in the table below:

Part Description
"pivotBar-addNew"defines the mouse-cursor to show when the mouse pointer hovers the "add-new" buttons within the control's pivotbar
"pivotBar-aggregate"defines the mouse-cursor to show when the mouse pointer hovers an aggregate-glyph within the control's pivotbar
"pivotBar-total"defines the mouse-cursor to show when the mouse pointer hovers a total-field within the control's pivotbar
"pivotBar-refresh"defines the mouse-cursor to show when the mouse pointer hovers the "Refresh" button within the control's pivotbar

The exgantt/js control supports additional parts as listed in the table below:

Part Description
"create-bar"defines the mouse-cursor to show when the user creates a new item-bar
"create-link"defines the mouse-cursor to show when the user creates a new link
"itemBar"defines the mouse-cursor to show when the user hovers a movable and selectable item-bar
"itemBar-percent-resize"defines the mouse-cursor to show when the user hovers the bar's percent right-side
By default, the Cursors property is set to:
"not-allowed(no),grab(long),pointer(expand,check,radio,filterBar-close,filterBar-caption-column,column-filter,column-drag,item-drag,drag-drop,anchor),text(filterBar-prompt)"
Type:
  • string
Example
"pointer(item),not-allowed(no),grab(long)" {string}, sets the mouse cursors for different parts of the tree control
Cursors

CustomView :CustomViewOptions

The CustomView property specifies the control's custom view options. The custom view converts the control's summarized data into a graphical format, displaying it as a visual representation instead of the default tabular layout. The pivot's custom view is displayed only when the Visible property is set to true and the Object property is defined. The customView options include settings such as the view's visibility and the object that renders it, allowing you to customize how the pivot data is visually presented. The onviewchange event notifies your application once control's view is changed, such as when data is updated, summarized, sorted, or filtered.
Type:
  • CustomViewOptions
Since:
  • 4.4
Example
The following statements are equivalent in setting the control's custom view options, where the object property is set to a new instance of exontrol.Graph that renders the pivot data on a canvas element with the identifier "cvsPivot", and the autoFit option is set to false to prevent automatic resizing of the graph:

 CustomView = {object: new exontrol.Graph("cvsPivot", {autoFit: false})};

or

 CustomView.Object = new exontrol.Graph("cvsPivot", {autoFit: false});
CustomView

Data :any

The Data property gets or sets the control's data. The GetData() method is equivalent with Data getter, while the SetData(value) method is equivalent with Data setter. The Data property imports data from CSV, XML files, string, array or objects of {columns, items} type. The SetData(value) method is equivalent with Import(value) method. The onload event occurs once the data is loaded. The onload event is fired even if the data is changed by user interaction (drop a file) or programmatically. The onerror event occurs if the data is not loaded successfully. The onerror event is fired even if the data is changed by user interaction (drop a file) or programmatically. The ImportOptions type defines default options to import data.

The Data property supports any of the following values:

  • A String expression that specifies the URL to a CSV or XML file (contains no eof, eor or str). For example, "datasource.xml" imports the content of the 'datasource.xml' file
  • A String expression in CSV or XML format. For example, "Item 1.1,SubItem 1.2\r\nItem 1.2,SubItem 2.2" creates two columns and two rows
  • An array of [value] or [[value]] type that defines the data to load. For instance, [["Item 1.1","Item 1.2"],["Item 2.1","Item 2.2"]] creates two columns and two rows
  • (@since 3.2) An object of {columns, items} type, where:
    • 'columns' can be an array of [(string | ColumnOptions)] to specify the columns to add or of type Columns to copy the control's header from one control to another (@since 4.3). For instance {columns: "Name,Start,End"}, adds three columns, or {columns: ["Name", {caption: "Filter", displayFilterButton: true}]} adds two columns
    • 'items' is be an array of [(string | ItemOptions)] to specify the items to add or of type Items to copy the control's items from one control to another (@since 4.3).
      The ItemOptions type supports a recursive 'items' property to specify child items. For instance, {columns: "Def", items: {value: "Root", expanded: false, items:["Child 1", "Child 2", "Child 3"]}} defines a single-column control with a collapsed root item labeled 'Root' and three child items named 'Child 1', 'Child 2', and 'Child 3', or {columns: [{caption: "C1", displayFilterButton: true}, "C2"], items: [{value: ["R1.1", "R1.2"], items: [["C1.1", "C1.2"], ["C2.1", "C2.2"], ["C3.1", "C3.2"]]}, ["R2.1", "R2.2"]]} defines a dataset with two columns labeled as C1 (with a filter button for user value filtering) and C2. It includes two root items and three child items under the first root, each specifying values for their respective cells in the table
  • An object that includes the "files" member of FileList type (representing a local file dropped into the control)

The onaddcolumn event occurs for each column added to the control, while the onadditem event occurs for each item added to the control during data import. The onload event occurs once all data is imported and loaded into the control.

Type:
  • any
Example
"xml/datasource.xml" {string}, imports data from datasource.xml file
"Item 1.1,SubItem 1.2\r\nItem 1.2,SubItem 2.2" {string}, creates two columns and two rows
[["Item 1.1","Item 1.2"],["Item 2.1","Item 2.2"]] {array}, creates two columns and two rows
{columns: [{caption: "C1", displayFilterButton: true}, " C2"], items: [{value: ["R1.1", "R1.2"], items: [["C1.1", "C1.2"], ["C2.1", "C2.2"], ["C3.1", "C3.2"]]}, ["R2.1", "R2.2"]]} {object}, defines a dataset with two columns labeled as C1 (with a filter button for user value filtering) and C2. It includes two root items and three child items under the first root, each specifying values for their respective cells in the table (@since 3.2)
Data

DefaultItemHeight :number

The DefaultItemHeight property gets or sets the item's default-height. The item's height is set to default-height when the item is added. If the item's height has been changed by the user (resized), then changing the default-height does not affect the item's height unless the item allows sizing (ItemAllowSizing property) and its height is reset to default-height. The Item.Height property gets or sets the height of the item. The Item.AllowSizing property indicates whether the item allows resizing by the user. By default, the DefaultItemHeight property is set to 24px.
Type:
  • number
Example
null {null}, specifies that the item's height is 24 (by default)
18 {number}, changes the item's default height to 18
DefaultItemHeight

DisplayPivotFields :number

The DisplayPivotFields property changes the maximum number of columns to be displayed on the control's list. The DisplayPivotFields property is useful when the control displays a large number of pivot-columns, and you want to limit the number of columns to be displayed on the control's list. The default value is 256, which means that the control displays maximum 256 pivot-columns on the control's list. If you set it to 0, the control does not display any pivot-column on the control's list. If you set it to -1, there is no limit for generated pivot-columns, and all generated pivot-columns are displayed on the control's list. The DisplayPivotRows property defines the maximum number of rows to be displayed on the control's list.
Type:
  • number
Example
0 {number}, the control displays no pivot-columns
256 {number}, the control displays maximum 256 pivot-columns
-1 {number}, there is no limit for generated pivot-columns
DisplayPivotFields

DisplayPivotRows :number

The DisplayPivotRows property defines the maximum number of rows to be displayed on the control's list. The DisplayPivotRows property is useful when the control displays a large number of pivot-rows, and you want to limit the number of rows to be displayed on the control's list. The default value is 16384, which means that the control displays maximum 16384 pivot-rows on the control's list. If you set it to 0, the control does not display any pivot-row on the control's list. If you set it to -1, there is no limit for generated pivot-rows, and all generated pivot-rows are displayed on the control's list. The DisplayPivotFields property defines the maximum number of columns to be displayed on the control's list.
Type:
  • number
Example
0 {number}, the control displays no generated-rows
16384 {number}, the control displays maximum 16384 rows
-1 {number}, there is no limit for generated rows
DisplayPivotRows

DrawGridLines :Pivot.GridLinesEnum

The DrawGridLines property shows or hides the control's grid-lines. The DrawGridLines property pecifies whether the control's grid-lines are visible or hidden. The Pivot.GridLinesEnum type supports the following flags:
  • exNoLines(0), no grid lines
  • exAllLines(-1), shows all vertical and horizontal grid lines
  • exRowLines(-2), shows grid lines for existing rows only
  • exHLines(1), shows only the horizontal grid lines
  • exVLines(2), shows only the vertical grid lines

The GridLines property customizes the color, width and style of the control's grid-lines. The GridLines property specifies the color, width and style of the control's grid-lines as an object of {width, color, style} type. By default, the DrawGridLines property is set to exNoLines (0), which hides the control's grid-lines.

Type:
Example
0 or Pivot.GridLinesEnum.exNoLines {number}, hides the grid-lines (default)
-1 or Pivot.GridLinesEnum.exAllLines {number}, shows all vertical and horizontal grid lines
DrawGridLines

EnsureOnSort :boolean

The EnsureOnSort property ensures that the selection fits the view's client-area once the user sorts or groups a column. The method scrolls the view, so the selection (including the parent-items) fits the view's client area. The Column.SortOrder property specifies the sort order of the column. The Sorts property of the Columns collection specifies the list of sorted columns within the tree-view. By default, the EnsureOnSort property is set to true, which scrolls the view to fit the selection once the user sorts or groups a column.
Type:
  • boolean
Example
false {boolean}, no effect
true {boolean}, scrolls the view, so the selection (including the parent-items) fits the view's client area
EnsureOnSort

ExpandGlyphSize :number

The ExpandGlyphSize property changes the size to show the item's expand/collapse glyphs. The item displays expand/collapse glyphs only if it has child-items. The Item.Expanded property indicates whether the item is expanded or collapsed. The Item.ToggleExpand() method toggles the item's expand state. The Item.ShowExpand property specifies whether the item's expand/collapse glyphs is visible or hidden. By default the expand/collapse glyphs size is 16x16 pixels.
Type:
  • number
Example
0 {number}, displays no item's expand/collapse glyphs
24 {number}, specifies a size of 24x24 to display the item's expand/collapse glyphs
ExpandGlyphSize

ExpandOnDblClick :boolean

The ExpandOnDblClick property determines whether the item is expanded or collapsed once the user double-clicks the item. The Item.Expanded property indicates whether the item is expanded or collapsed. The Item.ToggleExpand() method toggles the item's expand state. The Item.ShowExpand property specifies whether the item's expand/collapse glyphs is visible or hidden. By default, the ExpandOnDblClick property is set to true, which expands or collapses the item once the user double-clicks it.
Type:
  • boolean
Example
false {boolean}, the item is not expanded or collapsed once the user double-clicks it
true {boolean}, the item is expanded or collapsed once the user double-clicks it
ExpandOnDblClick

FilterBarCaption :string

The FilterBarCaption property customizes the caption to display within the control's filter-bar. The FilterBarHeight property gets or sets the height to display the control's filter-bar. The filter-bar is displayed only if the control's FilterBarVisible property includes exFilterBarVisible or exFilterBarPromptVisible flags, or if any filter is applied and the FilterBarVisible property includes exFilterBarHidden flag. Setting the filter-bar height to 0 hides the control's filter-bar. The FilterBarPrompt property gets or sets the caption to show while the pattern of the filter-prompt is empty. The property supports the following keywords, constants, operators and functions:
  • "value" or "current", returns the current filter as a string. At runtime the value may return a string such as
    "[<b>EmployeeID</b>] = '4| 5| 6' and [<b>ShipVia</b>] = 1</img>"
    , so the control automatically applies HTML format, which you can change it. For instance,
    "upper(value)"
    displays the caption in uppercase or "value replace `<b>` with `<fgcolor=808080>` replace `</b>` with `</fgcolor>`" displays the column's name with a different foreground color.
  • "itemcount", returns the total number of items as indicated by Items.Count property. At runtime the itemcount is a positive integer that indicates the count of all items. For instance,
    "value + `<fgcolor=808080>Total: ` + itemcount"
    includes in the filter bar the number of items aligned to the right.
  • "visibleitemcount", returns the number of visible items as indicated by Items.VisibleCount property. At runtime, the visibleitemcount is a positive integer if no filter is applied, and negative if a filter is applied. If positive, it indicates the number of visible items. The visible items does not include child items of a collapsed item. If negative, a filter is applied, and the absolute value minus one, indicates the number of visible items after filter is applied. 0 indicates no visible items, while -1 indicates that a filter is applied, but no item matches the filter criteria. For instance,
    "value + `<fgcolor=808080>` + ( visibleitemcount < 0 ? ( `Result: ` + ( abs(visibleitemcount) - 1 ) ) : ( `Visible: ` + visibleitemcount ) )"
    includes "Visible: " plus number of visible items, if no filter is applied or "Result: " plus number of visible items, if filter is applied, aligned to the right
  • "matchitemcount", returns the number of items that match the filter as indicated by Items.MatchCount property. At runtime, the matchitemcount is a positive integer if no filter is applied, and negative if a filter is applied. If positive, it indicates the number of items within the control (Items.Count property). If negative, a filter is applied, and the absolute value minus one, indicates the number of matching items after filter is applied. A matching item includes its parent items, if the control's FilterInclude property allows including child items. 0 indicates no visible items, while -1 indicates that a filter is applied, but no item matches the filter criteria. For instance,
    "value + `<fgcolor=808080>` + ( matchitemcount < 0 ? ( `Result: ` + ( abs(matchitemcount) - 1 ) ) : ( `Visible: ` + matchitemcount ) )"
    includes "Visible: " plus number of visible items, if no filter is applied or "Result: " plus number of matching items, if filter is applied, aligned to the right
  • "leafitemcount", returns the number of leaf-items. A leaf item is an item with no child items. At runtime, the leafitemcount is a positive number that computes the number of leaf-items ( expanded or collapsed ). For instance,
    "value + `<fgcolor=808080><font ;6>` + leafitemcount"
    displays the number of leaf-items aligned to the right with a different font and foreground color.
  • "promptpattern", returns the pattern in the filter bar's prompt, as a string. The FilterBarPromptPattern specifies the pattern for the filter prompt. The control's filter bar prompt is visible, if the exFilterBarPromptVisible flag is included in the FilterBarVisible property.
  • "available", returns the list of columns that are not currently part of the control's filter, but are available to be filtered. A column is available to be filtered, if the DisplayFilterButton property of the Column object, is True. At runtime, the available keyword may return a string such as
    "<fgcolor=C0C0C0>[<s>OrderDate</s>]<fgcolor> </fgcolor>[<s>RequiredDate</s>]<fgcolor> </fgcolor>[<s>ShippedDate</s>]<fgcolor> </fgcolor>[<s>ShipCountry</s>]<fgcolor> </fgcolor>[<s>Select</s>]</fgcolor>"
    so the control automatically applies HTML format, which you can change it. For instance,
    "value + ` ` + available"
    displays the current filter, including all available columns to be filtered. For instance,
    "value + `` + available replace `C0C0C0` with `FF0000`"
    displays the available columns aligned to the right with a different foreground color.
  • "allui", returns the list of columns that are part of the current filter and available columns to be filtered. A column is available to be filtered, if the DisplayFilterButton property of the Column object, is True. At runtime, the allui keyword may return a string such as
    "[<b>EmployeeID</b>] = '4| 5| 6'<fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>OrderDate</s>]</fgcolor><fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>RequiredDate</s>]</fgcolor><fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>ShippedDate</s>]</fgcolor><fgcolor> </fgcolor>[<b>ShipVia</b>] = 1</img><fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>ShipCountry</s>]</fgcolor><fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>Select</s>]</fgcolor>"
    so the control automatically applies HTML format, which you can change it. For instance,
    "allui"
    displays the current filter, including all available columns to be filtered. For instance,
    "((allui + `<fgcolor=808080>` + ( matchitemcount < 0 ? ( ( len(allui) ? `` : `` ) + `` + abs(matchitemcount + 1) + ` result(s)` ) : (`<fgcolor=808080>`+ itemcount + ` item(s)`) )) replace `[<b>` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `</b>]` with ` </b></bgcolor></fgcolor>` replace `[<s>` with `<bgcolor=C0C0C0><fgcolor=FFFFFF> ` replace `</s>]` with ` </bgcolor></fgcolor>` )"
    displays all available columns to be filtered with different background/foreground colors including the number of items/results
  • "all", returns the list of all columns ( visible or hidden ) no matter if the DisplayFilterButton property is True or False. At runtime, the all keyword may return a string such as
    "<fgcolor=C0C0C0>[<s>OrderID</s>]</fgcolor><fgcolor> </fgcolor>[<b>EmployeeID</b>] = '4| 5| 6'<fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>OrderDate</s>]</fgcolor><fgcolor> </fgcolor><fgcolor=C0C0C0>[<s>RequiredDate</s>]</fgcolor><fgcolor>"
    so the control automatically applies HTML format, which you can change it. For instance,
    "all"
    displays the current filter, including all other columns. For instance,
    "((all + `<fgcolor=808080>` + ( matchitemcount < 0 ? ( ( len(allui) ? `` : `` ) + `` + abs(matchitemcount + 1) + ` result(s)` ) : (`<fgcolor=808080>`+ itemcount + ` item(s)`) )) replace `[<b>` with `<bgcolor=000000><fgcolor=FFFFFF><b> ` replace `</b>]` with ` </b></bgcolor></fgcolor>` replace `[<s>` with `<bgcolor=C0C0C0><fgcolor=FFFFFF> ` replace `</s>]` with ` </bgcolor></fgcolor>` )"
    displays all columns with different background/foreground colors including the number of items/results
By default, the FilterBarCaption property is an empty string (""), so no filter bar is displayed while no filter is applied. Once a filter is applied, the control displays the current filter as the filter bar caption.
Type:
  • string
Example
"" {string}, displays no filter bar while no filter is applied, else it displays the filter as default
"no filter" {string}, shows no filter caption all the time
"allui" {string}, displays all available columns (column's DisplayFilterButton property is true)
"value replace ` and ` with `&lt;off 4&gt; and &lt;/off&gt;` replace `|` with ` &lt;off 4&gt;or&lt;/off&gt; ` replace ` ` with ` `" {string}, replaces the AND and | values
"value replace `[` with `&lt;bgcolor=000000&gt;&lt;fgcolor=FFFFFF&gt;&lt;b&gt; ` replace `]` with ` &lt;/b&gt;&lt;/bgcolor&gt;&lt;/fgcolor&gt;`" {string}, highlights the columns being filtered with a different background/foreground colors.
FilterBarCaption

FilterBarHeight :number

The FilterBarHeight property gets or sets the height to display the control's filter-bar. The filter-bar is displayed only if the control's FilterBarVisible property includes exFilterBarVisible or exFilterBarPromptVisible flags, or if any filter is applied and the FilterBarVisible property includes exFilterBarHidden flag. Setting the filter-bar height to 0 hides the control's filter-bar. The FilterBarPrompt property gets or sets the caption to show while the pattern of the filter-prompt is empty. By default, the FilterBarHeight property is set to 24 pixels.
Type:
  • number
Example
0 {number}, hides the control's filter-bar
24 {number}, indicates that the height of the control's filter-bar is 24
FilterBarHeight

FilterBarPrompt :string

The FilterBarPrompt property gets or sets the caption to show while the pattern of the filter-prompt is empty. FilterBarPrompt property supports ex-HTML formatting. The FilterBarVisible property shows or hides the control's filter-bar. The FilterBarHeight property gets or sets the height to display the control's filter-bar. The FilterBarPromptColumns property specifies the list of columns the pattern of filter-prompt is applying to. The FilterBarPromptType property gets or sets the type of the control's filter-prompt. The default value is "Start Filter...".
Type:
  • string
Example
"" {string}, displays no caption (while the pattern of the filter-prompt is empty)
"&lt;i&gt;filter...&lt;/i&gt;" {string}, displays the message "filter..." in italics
FilterBarPrompt

FilterBarPromptColumns :any

The FilterBarPromptColumns property specifies the list of columns the pattern of filter-prompt is applying to. The FilterBarPromptColumns property supports the following types of values:
  • null {null} or -1 {number}, all columns (visible or hidden)
  • {number}, specifies the index of the column
  • {string}, specifies a list of index/identifier/key/caption/plain-caption, separated by comma character
  • {Column}, specifies the column reference

The FilterBarPrompt property gets or sets the caption to show while the pattern of the filter-prompt is empty. FilterBarPrompt property supports ex-HTML formatting. The FilterBarVisible property shows or hides the control's filter-bar. The FilterBarHeight property gets or sets the height to display the control's filter-bar. The FilterBarPromptColumns property specifies the list of columns the pattern of filter-prompt is applying to. The FilterBarPromptType property gets or sets the type of the control's filter-prompt. By default, the FilterBarPromptColumns property is null, which specifies that filter-prompt is applied to all columns (visible or hidden).

Type:
  • any
Example
null or -1 {null/number}, specifies that filter-prompt is applied to all columns (visible or hidden)
2 {number}, specifies that filter-prompt is applied to the column with index 2
"0,2,4" {string}, specifies that filter-prompt is applied to the columns with index 0, 2 and 4
"EmployeeID,ShipVia,ShipCountry" {string}, specifies that filter-prompt is applied to the columns with identifier/key/caption/plain-caption "EmployeeID", "ShipVia" and "ShipCountry"
FilterBarPromptColumns

FilterBarPromptPattern :string

The FilterBarPromptPattern property gets or sets the pattern of the control's filter-prompt. The pattern is used to filter the items within the control based on the filterBarPromptType field. The FilterBarPrompt property gets or sets the caption to show while the pattern of the filter-prompt is empty. The FilterBarPromptType property gets or sets the type of the control's filter-prompt, as a value of the Pivot.FilterPromptEnum enumeration. By default, the FilterBarPromptPattern property is an empty string ("").
Type:
  • string
Example
"" {string}, clears the pattern of the filter-prompt
"A" {string}, filters for items includes "A" (exFilterPromptContainsAll)
"A* *B" {string}, filters for items start starts with "A" or ends with "B" (exFilterPromptPattern)
FilterBarPromptPattern

FilterBarPromptType :Pivot.FilterPromptEnum

The FilterBarPromptType property gets or sets the type of the control's filter-prompt, as a value of the Pivot.FilterPromptEnum enumeration. The type defines how the pattern of filter-prompt filters for items. The FilterBarVisible property shows or hides the control's filter-bar. The filter-bar is displayed only if the control's FilterBarVisible property includes exFilterBarVisible or exFilterBarPromptVisible flags, or if any filter is applied and the FilterBarVisible property includes exFilterBarHidden flag. The onfilter event notifies your application once the control's filter has been changed. The Pivot.FilterPromptEnum type supports the following flags:
  • exFilterPromptContainsAll(1), The list includes the items that contains all specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
  • exFilterPromptContainsAny(2), The list includes the items that contains any of specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
  • exFilterPromptStartWith(3), The list includes the items that starts with any specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
  • exFilterPromptEndWith(4), The list includes the items that ends with any specified sequences in the filter. Can be combined with exFilterPromptCaseSensitive, exFilterPromptStartWords, exFilterPromptEndWords or exFilterPromptWords
  • exFilterPromptPattern(16), The filter indicates a pattern that may include wild characters to be used to filter the items in the list. Can be combined with exFilterPromptCaseSensitive. The filterBarPromptPattern field may include wild characters as follows:
    '?' for any single character
    '*' for zero or more occurrences of any character
    '#' for any digit character
    ' ' space delimits the patterns inside the filter
  • exFilterPromptCaseSensitive(0x0100), Filtering the list is case sensitive. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith, exFilterPromptEndWith or exFilterPromptPattern.
  • exFilterPromptStartWords(0x1200), The list includes the items that starts with specified words, in any position. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith or exFilterPromptEndWith.
  • exFilterPromptEndWords(0x2200), The list includes the items that ends with specified words, in any position. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith or exFilterPromptEndWith.
  • exFilterPromptWords(0x3200), The filter indicates a list of words. Can be combined with exFilterPromptContainsAll, exFilterPromptContainsAny, exFilterPromptStartWith or exFilterPromptEndWith.
By default, the FilterBarPromptType property is exFilterPromptContainsAll.
Type:
Example
2 or Pivot.FilterPromptEnum.exFilterPromptContainsAny {number}, filters for items that contains any sequences in the filter
0x3202 or Pivot.FilterPromptEnum.exFilterPromptContainsAny | Pivot.FilterPromptEnum.exFilterPromptWords {number}, filters for items that contains any words in the filter
0x3203 or Pivot.FilterPromptEnum.exFilterPromptStartWith | Pivot.FilterPromptEnum.exFilterPromptWords {number}, filters for items that starts with any word within the filter
FilterBarPromptType

FilterBarVisible :Pivot.FilterBarVisibleEnum

The FilterBarVisible property shows or hides the control's filter-bar. The filter-bar is displayed only if the control's FilterBarVisible property includes exFilterBarVisible or exFilterBarPromptVisible flags, or if any filter is applied and the FilterBarVisible property includes exFilterBarHidden flag. The onfilter event notifies your application once the control's filter has been changed. The onfilter event is triggered when the user applies a new filter or clears the existing filter. The FilterBarVisible property supports multiple flags that customize the control's filter-bar appearance and behavior, as defined by the exontrol.Pivot.FilterBarVisibleEnum type. The Pivot.FilterBarVisibleEnum type supports the following flags:
  • exFilterBarHidden(0), indicates that the control's filter-bar is visible only if the control has a filter applied (use the filterBarHeight on 0 to effectively hides the control's filter-bar)
  • exFilterBarPromptVisible(1), specifies that the control's filter-bar displays the filter prompt
  • exFilterBarVisible(2), forces the control's filter-bar to be shown, no matter if any filter is applied
  • exFilterBarCaptionVisible(4), forces the control's filter-bar to display the FilterBarCaption property.
  • exFilterBarSingleLine(16), specifies that the caption on the control's filter bar is displayed on a single line. The exFilterBarSingleLine flag , specifies that the filter bar's caption is shown on a single line, so
    HTML tag or \r\n are not handled. By default, the control's filter description applies word wrapping. Can be combined to exFilterBarCompact to display a single-line filter bar. If missing, the caption on the control's filter bar is displayed on multiple lines. You can change the height of the control's filter bar using the FilterBarHeight property.
  • exFilterBarToggle(256), specifies that the user can close the control's filter bar ( removes the control's filter ) by clicking the close button of the filter bar or by pressing the CTRL + F, while the control's filter bar is visible. If no filter bar is displayed, the user can display the control's filter bar by pressing the CTRL + F key. While the control's filter bar is visible the user can navigate though the list or control's filter bar using the ALT + Up/Down keys. If missing, the control's filter bar is always shown if any of the following flags is present exFilterBarPromptVisible, exFilterBarVisible, exFilterBarCaptionVisible.
  • exFilterBarShowCloseIfRequired(512), indicates that the close button of the control's filter bar is displayed only if the control has any currently filter applied.
  • exFilterBarShowCloseOnRight(1024), specifies that the close button of the control's filter bar should be displayed on the right side.
  • exFilterBarCompact(2048), compacts the control's filter bar, so the filter-prompt will be displayed to the left, while the control's filter bar caption will be displayed to the right. This flag has effect only if combined with the exFilterBarPromptVisible. This flag can be combined with the exFilterBarSingleLine flag, so all filter bar will be displayed compact and on a single line.
  • exFilterBarShort(4096), specifies that the control's filter bar is displayed only on the default-view (has effect if the control displays multiple views).
By default, the FilterBarVisible property is set to exontrol.Pivot.FilterBarVisibleEnum.exFilterBarHidden, which makes the control's filter-bar visible only if there is a filter applied.
Type:
Example
0 or Pivot.FilterBarVisibleEnum.exFilterBarHidden {number}, (default) the control's filter-bar is visible only if there is a filter applied.
1 or Pivot.FilterBarVisibleEnum.exFilterBarPromptVisible {number}, the control's filter-bar is visible and shows the control's filter-prompt
FilterBarVisible

FilterInclude :Pivot.FilterIncludeEnum

The FilterInclude property specifies the items to include once the control's filter is applied. The Pivot.FilterIncludeEnum type supports various flags that define the items to include once the control's filter is applied. The exMatchIncludeParent flag can be combined with any other value to include the parent-items that match the filter. The FilterInclude property supports values of Pivot.FilterIncludeEnum type. The Pivot.FilterIncludeEnum type supports the following flags:
  • exItemsWithoutChilds(0), items (and parent-items) that match the filter are shown (no child-items are included)
  • exItemsWithChilds(1), items (parent and child-items) that match the filter are shown
  • exRootsWithoutChilds(2), only root-items (excludes child-items) that match the filter are displayed
  • exRootsWithChilds(3), root-items (and child-items) that match the filter are displayed
  • exMatchingItemsOnly(4), shows only the items that matches the filter (no parent or child-items are included)
  • exMatchIncludeParent(0xF0), specifies that the item matches the filter if any of its parent-item matches the filter. The exMatchIncludeParent flag can be combined with any other value
By default, the FilterInclude property is set to exItemsWithoutChilds, which shows the items (and parent-items) that match the filter (no child-items are included).
Type:
Example
null {null}, specifies the control's default FilterInclude property (Pivot.FilterIncludeEnum.exItemsWithoutChilds), so items (and parent-items) that match the filter are shown (no child-items are included)
4 or Pivot.FilterIncludeEnum.exMatchingItemsOnly {number}, shows only the items that matches the filter (no parent or child-items are included)
0xF4 or Pivot.FilterIncludeEnum.exMatchingItemsOnly | Pivot.FilterIncludeEnum.exMatchIncludeParent {number}, shows the items (including the child-items) that match the filter
FilterInclude

FormatAppearances :FormatAppearances

The FormatAppearances property returns the control's format-appearances that defines the visual-appearance to apply on pivot-columns. The format-appearances are applied after the format-contents, but before the format-conditional-appearances. The format-appearances are applied to any aggregate-column, pivot-row item, total or sub-total item. The conditional-appearance is not supported for pivot-row item, total or sub-total item. The format-appearances are applied based on the flags defined within the options of pivotRows and pivotColumns properties. The FormatConditionalAppearances property holds the format-appearances that are applied based on conditions. The FormatContents property holds information about how a column or row can be displayed, formatted or converted.
Type:
Example
The folowing statements are equivalent:

 oPivot.GetFormatAppearances() {FormatAppearances}, returns the control's format-appearances that defines the visual-appearance to apply on pivot-columns
 oPivot.FormatAppearances {FormatAppearances}, returns the control's format-appearances that defines the visual-appearance to apply on pivot-columns

where oPivot is an object of Pivot type
FormatAppearances

FormatConditionalAppearances :FormatConditionalAppearances

The FormatConditionalAppearances property returns the control's format-appearances that defines the visual-appearance to apply on pivot-columns, based on conditions. The format-conditional-appearances are applied after the format-contents and format-appearances. The format-conditional-appearances are applied to any aggregate-column. The format-conditional-appearances are not supported for pivot-row item, total or sub-total item. The format-conditional-appearances are applied based on the flags defined within the options of pivotColumns property. The FormatAppearances property holds the format-appearances that defines the visual-appearance to apply on pivot-columns. The FormatContents property holds information about how a column or row can be displayed, formatted or converted.
Type:
Example
The folowing statements are equivalent:

 oPivot.GetFormatConditionalAppearances() {FormatConditionalAppearances}, returns the control's format-appearances that defines the visual-appearance to apply on pivot-columns, based on conditions
 oPivot.FormatConditionalAppearances {FormatConditionalAppearances}, returns the control's format-appearances that defines the visual-appearance to apply on pivot-columns, based on conditions

where oPivot is an object of Pivot type
FormatConditionalAppearances

FormatContents :FormatContents

The FormatContents property returns the control's format-contents that specifies how a column or row can be displayed, formatted or converted. The format-contents are applied before the format-appearances and format-conditional-appearances. The format-contents are applied to any aggregate-column, pivot-row item, total or sub-total item. The FormatAppearances property holds the format-appearances that defines the visual-appearance to apply on pivot-columns. The FormatConditionalAppearances property holds the format-appearances that are applied based on conditions.
Type:
Example
The folowing statements are equivalent:

 oPivot.GetFormatContents() {FormatContents}, returns the control's format-contents that specifies how a column or row can be displayed, formatted or converted
 oPivot.FormatContents {FormatContents}, returns the control's format-contents that specifies how a column or row can be displayed, formatted or converted

where oPivot is an object of Pivot type
FormatContents

FormatPivotHeader :string

The FormatPivotHeader property specifies the format-expression to display the columns within the pivot bar. The FormatPivotHeader property is useful when you want to customize the way the columns are displayed within the pivot bar. By default, the formatPivotHeader field displays the aggregate function followed by the column caption (if present), using "of" to separate them. For subtotal and total rows, it shows "Total" or "Subtotal" depending on the level and the aggregate type.

The formatPivotHeader field supports the following keywords:

aggregate {string}, specifies the name of the aggregate-function associated with the column, or empty, for pivot-rows columns
ilevel {number}, indicates the index of the level where the aggregate-function is shown. This is valid for total-rows only, else it is -1
caption {string}, indicates the original-caption of the column
icaption {number}, specifies the index of the column
display {number}, specifies whether the caption is shown on the control's pivot bar (0), or in the columns header(1)
Type:
  • string
Example
"" {string}, no caption is displayed for any of columns within the pivot bar
"lower(aggregate and caption ? ('&lt;fgcolor gray&gt;' + aggregate + '&lt;/fgcolor&gt;(' + caption + ')') : aggregate or caption)" {string}, shows the aggregate-function in gray and the column between parenthesis
"(aggregate = 'sum' ? '&lt;b&gt;&#931;' : aggregate) + (aggregate and caption ? '(':'') + caption + (aggregate and caption ? ')':'') + (aggregate = 'sum' ? '&lt;/b&gt;' : '')", shows sigma-character instead of Sum of
FormatPivotHeader

FormatText :exontrol.DrawTextFormatEnum

The FormatText property gets or sets the format to display the cell's caption, as a combination of exontrol.DrawTextFormatEnum flags. The Cell.FormatText property gets or sets the format to display the cell's caption. The Column.FormatText property gets or sets the format to display the column's header caption. The format defines the text's alignment, wrapping, clipping, and other display options. The Pivot.FormatText property is used as default format for the cells or columns that do not have their own format defined. Shortly, if the Cell.Format property is null, the Pivot.FormatText property is used to display the cell's caption; if the Column.Format property is null, the Pivot.FormatText property is used to display the column's header caption. The exontrol.DrawTextFormatEnum type supports the following flags:
  • exTextAlignTop (0x00), justifies the text to the top of the rectangle
  • exTextAlignLeft (0x00), aligns text to the left
  • exTextAlignCenter (0x01), centers text horizontally in the rectangle
  • exTextAlignRight (0x02), aligns text to the right
  • exTextAlignVCenter (0x04), centers text vertically
  • exTextAlignBottom (0x08), justifies the text to the bottom of the rectangle.
  • exTextAlignMask (0x0F), specifies the mask for text's alignment.
  • exTextWordBreak (0x10), breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the lpRect parameter. A carriage return-line feed sequence also breaks the line. If this is not specified, output is on one line.
  • exTextSingleLine (0x20), displays text on a single line only. Carriage returns and line feeds do not break the line.
  • exTextExpandTabs (0x40), expands tab characters. The default number of characters per tab is eight.
  • exPlainText (0x80), treats the text as plain text.
  • exTextNoClip (0x0100), draws without clipping.
  • exHTMLTextNoColors (0x0200), ignores the and tags.
  • exTextCalcRect (0x0400), determines the width and height of the text.
  • exHTMLTextNoTags (0x0800), ignores all HTML tags.
  • exTextPathEllipsis (0x4000), for displayed text, replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, exTextPathEllipsis preserves as much as possible of the text after the last backslash.
  • exTextEndEllipsis (0x8000), for displayed text, if the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses.
  • exTextWordEllipsis (0x040000), truncates any word that does not fit in the rectangle and adds ellipses.
Type:
  • exontrol.DrawTextFormatEnum
Example
null {null}, centers the caption
32 or exontrol.DrawTextFormatEnum.exTextSingleLine {number}, defines a single-line caption
0x2A or exontrol.DrawTextFormatEnum.exTextSingleLine | exontrol.DrawTextFormatEnum.exTextAlignRight | exontrol.DrawTextFormatEnum.exTextAlignBottom {number}, defines a single-line caption right/bottom-aligned
FormatText

GridLines :object

The GridLines property customizes the color, width and style of the control's grid-lines. The DrawGridLines property shows or hides the control's grid-lines. The GridLines property specifies the color, width and style of the control's grid-lines as an object of {width, color, style} type as explained:
width {number}, specifies the line's width or size (1 by default)
color {string}, indicates the line's color (partial-black by default)
style {number[]}, specifies the dash pattern to show the lines (dotted by default)
By default, the GridLines property is set to:
 {
  color: "gray",
  style: 1
 }
which displays gray dotted grid-lines with 1-pixel width.
Type:
  • object
Example
null {null}, resets the grid-lines to default (gray dotted lines with 1-pixel width)
{ color: "red", width: 2, style: [4,2] } {object}, changes the grid-lines to red color, 2-pixels width and dashed style
GridLines

GroupByFormatCell :string

The GroupByFormatCell property specifies the format of the cell to be displayed when the column gets grouped by. The Pivot.AllowGroupBy property specifies whether the control supports group-by view. The group-by view is generated once the user drags a column to the control's group-by/sort bar. The Pivot.SortBarVisible property must be true to display the group-by/sort bar. By default, the control does not support group-by view. The onaddgroupitem event is triggered for each item when a group-by view is generated. The onremoveitem event is triggered for each item when a group-by view is removed. The GroupItem property determines whether an item is a group item. The format of the cell to be displayed when the column gets grouped by can be specified for each column individually through the Column.GroupByFormatCell property, which overrides the default format specified by this method.

The format of the cell is defined by a format-expression that supports keywords and operators, as explained next:

value, indicates the value of the current cell ( "value/2 format ``", displays half of the value using current regional format )
%0, %1, %2, ... {any} specifies the value of the cell in the column with the index 0, 1 2, ... ( "currency(%0 + %1)", adds the value of first and second cell and displays it as a currency )
%C0, %C1, %C2, ... {string} specifies the caption of the cell, or the string the cell displays in the column with the index 0, 1 2, ... ( "%C0 + %C1", concatenates the caption of first and second cell )
%CD0, %CD1, %CD2, ... {any} specifies the cell's user-date in the column with the index 0, 1 2, ... ( "%CD0 ? value : ``", displays the cell's value only if the cell's data is not empty )
%CS0, %CS1, %CS2, ... {number} specifies the cell's state in the column with the index 0, 1 2, ... ( "(%CS0 ? `<b>` : ``) + value", displays the cell's value in bold only if the first cell is checked )
%CT0, %CT1, %CT2, ... {boolean} returns true if the cell displays a total field; otherwise, it returns false. The exTotalField / exTotalColumn flag specifies whether the cell displays a total field. For instance, "%CT1" refers to all cells in the second column that display totals, while "not %CT1" refers to all cells in the second column that do not display totals (@since 3.3)
%CE0, %CE1, %CE2, ... {boolean} returns true if the cell is editable; otherwise, it returns false.. For example, "%CE0" refers to all editable cells in the first column, while "not %CE1" refers to all cells in the second column that are read-only (@since 3.3)
%CC0, %CC1, %CC2, ... {number} retrieve the number of child items (this keyword consistently returns identical results for all cells since it pertains to the item that hosts each cell). The ChildCount property returns the number of child items. For example, "%CC0" identifies all parent items, while "%CC0 = 0" identifies all leaf items (@since 3.3)
%CX0, %CX1, %CX2, ... {boolean} returns true if the item hosting the cell is expanded, or false if it is collapsed (this keyword consistently returns identical results for all cells since it pertains to the item that hosts each cell). The Item.Expanded property specifically indicates whether the item is expanded or collapsed. For example, "%CX0" refers to all expanded items, while "not %CX0" identifies all collapsed items (@since 3.3)
The format-expression supports the following unary-operators:
  • exp(``), checks whether the item is expanded or collapsed ( "(exp(``) ? `<b>` : ``) + value", shows expanded-items in bold )
  • get(`aggregate(list,direction,formula)`), summarizes the cell based on "aggregate(list,direction,formula)" syntax, where:
    aggregate, must be one of the following:
    • sum, performs addition of values
    • min, retrieves the minimum value
    • max, retrieves the maximum value
    • count, counts the number of items
    • avg, calculates the average of values
    • std, gets standard-deviation of numbers
    • unique, counts how many distinct values are in the set (@since 4.3)
    list, must be one of the following:
    • a number expression that specifies the index of the item being referred
    • all, indicates all items, so the formula is being applied to all items
    • current, refers the current item
    • parent, refers to the parent item
    • root, refers to the root item (the root item has no parent items)
    direction, must be one of the following:
    • dir, collects only direct descendents (child-items)
    • rec, collects recursivelly the leaf descendents ( leaf items ). A leaf item is an item with no child items
    • all, collects all descendents
    Currently, the following items are excluded by aggregate functions:
    not-sortable items. The Item.Sortable property specifies whether the item can be sorted ( a sortable item can change its position after sorting, while a not-sortable item keeps its position after sorting. not-selectable items. The Item.Selectable property specifies whether the user can selects/focus the specified item. divider items. The Item.Divider property specifies whether the item displays a single cell, instead displaying whole cells.
    In conclusion, aggregate functions counts ONLY items that are sortable, selectable and not a divider-item.

    For instance:
    "get(`count(current,dir,1)`)", gets the count of child-items
    "get(`count(current,all,1)`)", gets the count of all child-items (implies recursively child items)
    "get(`count(current,rec,1)`)", counts the number of leaf items ( a leaf item is an item with no child items )
    "get(`sum(current,dir,%1 ? 1 : 0)`)", counts the number of child-items that have not-empty cells within the second-column
    "get(`sum(current,dir,value)`)", gets the total of values of child-items (direct descendent) within the same column
    "get(`sum(all,rec,value)`)", gets the total of values of leaf-items within the same column
    "get(`sum(parent,dir,dbl(%1) + dbl(%2))`)", gets the addition of all cells in the second (%1) and third (%2) column that are directly descendent of the parent item (sibling)
The format-expression supports the following binary-operators:
0 index `format`, gets the index of the item (0-based). The first added item has the index 0, the second added item has the index 1, and so on. The index of the item remains the same even if the order of the items is changed by sorting or grouping ( "1 index ``", gets the index of the item starting from 1 )
0 rindex `delimiter|format|format|...`, returns the recursive-index of the item ("1 rindex `.|A-Z`", returns values as A, A.1, A.2, B, ...)
0 pos `format`, returns the relative position of the item (the position within the parent's children collection) ( "1 pos ``", returns the position of the item (1-based) within the parent's child items collection )
0 rpos `delimiter|format|format|...`, returns the recursive relative-position of the item (the position within the parent's children collection) ( "1 rpos `.|A-Z`", returns values as A, A.1, A.2, B, ... )
0 opos `format`, returns the relative old position of the item (the position within the parent's children collection) ( "1 opos ``", returns the position of the item (1-based) within the parent's child items collection )
0 ropos `delimiter|format|format|...`, returns the recursive relative-old-position of the item (the position within the parent's children collection) ( "1 ropos `.|A-Z`", returns values as A, A.1, A.2, B, ... )
0 apos `format`, returns the absolute position of the item (the position from the first visible item) ( "1 apos ``", gets absolute position of the item )
0 rapos `delimiter|format|format|...`, returns the recursive absolute-position of the item (the position from the first visible item) ( "1 rapos `.|A-Z`", returns values as A, A.1, A.2, B, ... )
where:
  • `delimiter`, is a character to separated recursive-operators such as "rindex", "rpos", "ropos" and "rapos"
  • `format`, is a set of characters to be used for specifying the index
Additionally, it supports parent and root unary operators to access the values of parent or root items as explained:
parent (unary operator), refers to the parent item of the current item. This expression allows access to values or properties associated with the immediate parent in the hierarchy or structure ( "parent(1 index ``)", gets the index of the parent-item (1-based) ) (@since 4.3)
root (unary operator), refers to the root item of the current item's hierarchy. This expression allows access to values or properties of the highest-level item in the entire structure, regardless of how deeply nested the current item is ("root(%C0)", retrieves the caption of the first column for the root item) (@since 4.3)
By default, the GroupByFormatCell property is set to:
"(exp(``) ? `<b>` : ``) + value + (0:=get(`count(current,rec,1)`) ? (` <fgcolor gray>(` + =:0 + `)`) : ``)"
which displays the group-by value in bold if the group-item is expanded, followed by the count of items within the group in gray color.
Type:
  • string
Example
"" {string}, the default group-by value gets displayed once the column gets grouped by
"upper(value)" {string}, the default group-by value (in upper case) gets displayed once the column gets grouped by
"value + ` &lt;fgcolor gray&gt;` + get(`count(current,rec,1)`)" {string}, the default group-by value plus the count of items within the group gets displayed once the column gets grouped by
GroupByFormatCell

HasButtons :boolean

The HasButtons property shows or hides the expand/collapse glyphs (+/- buttons to expand-collapse the item). The items can still be expanded/collapsed by double-clicking the item. The expand/collapse glyphs are shown only if the item has child items. The HasLines property customizes the color, width and style of the control's hierarchy-lines. The TreeColumnIndex property gets or sets the index or identifier/key/caption of the column that displays the hierarchy. By default, the HasButtons property is true, meaning that the control shows the expand/collapse glyphs.
Type:
  • boolean
Since:
  • 1.4
Example
false {boolean}, hides the expand/collapse glyphs (+/- buttons to expand-collapse the item)
true {boolean}, shows the expand/collapse glyphs (+/- buttons to expand
HasButtons

HasLines :object

The HasLines property customizes the color, width and style of the control's hierarchy-lines. The TreeColumnIndex property gets or sets the index or identifier/key/caption of the column that displays the hierarchy. The HasButtons property shows or hides the expand/collapse glyphs (+/- buttons to expand-collapse the item). The HasLines property specifies the color, width and style of the control's hierarchy-lines as an object of {width, color, style, cap, join} type as explained:
width {number}, specifies the line's width or size (1 by default)
color {string}, indicates the line's color (partial-black by default)
style {number[]}, specifies the dash pattern to show the lines (dotted by default)
cap {("butt"|"round"|"square")}, determines the shape used to draw the end points of lines ("butt", the ends of lines are squared off at the endpoints by default)
join {("bevel"|"round"|"miter")}, determines the shape used to join two line segments where they meet ("miter", connected segments are joined by extending their outside edges to connect at a single point, with the effect of filling an additional lozenge-shaped area. by default)
By default, the control shows hierarchy-lines with partial-black color, 1-pixel width and dotted style.
Type:
  • object
Since:
  • 1.4
Example
null {null}, no hierarchy lines are shown
{width: 2, color: "red", style: [4,2], cap: "round", join: "bevel"} {object}, shows hierarchy-lines with red color, 2-pixels width, dashed style, round line-caps and bevel line-joins
HasLines

HeaderEnabled :boolean

The HeaderEnabled property enables or disables the control's header(includes the control's sortbar or floatbar). While disabled the user can't move, resize, sort or drag and drop the columns by drag and drop. The HeaderHeight property gets or sets the height to display the control's header. The HeaderVisible property shows or hides the control's header. By default, the HeaderEnabled property is set to true, which enables the control's header.
Type:
  • boolean
Since:
  • 2.4
Example
false {boolean} or 0 {number}, disables the control's header
true {boolean} or 1 {number}, enables the control's header
HeaderEnabled

HeaderHeight :number

The HeaderHeight property gets or sets the height to display the control's header. The header displays the header of each visible-columns. The HeaderVisible property shows or hides the control's header. The HeaderEnabled property enables or disables the control's header(includes the control's sortbar or floatbar). By default, the HeaderHeight property is set to 24, which indicates that the height of the control's header is 24 pixels.
Type:
  • number
Example
0 {number}, hides the control's header
24 {number}, indicates that the height of the control's header is 24
HeaderHeight

HeaderVisible :Pivot.HeaderVisibleEnum

The HeaderVisible property shows or hides the control's header. The header displays the header of each visible-columns. The HeaderHeight property specifies the height to display the control's header. The HeaderEnabled property enables or disables the control's header(includes the control's sortbar or floatbar). The HeaderVisible property supports the following values:
    exHeaderHidden(0), the control's header is hidden exHeaderVisible(-1), the control's header is visible exHeaderVisibleExtendLevels(1), the control's header is visible, and each column's header is extended to cover all levels of the header
By default, the HeaderVisible property is set to exHeaderVisible(-1), which shows the control's header.
Type:
Example
false {boolean} or 0 {number}, hides the control's header
-1 {number} or Pivot.HeaderVisibleEnum.exHeaderVisible {number}, shows the control's header
true {boolean} or 1 {number}, shows the control's header (each column's header is extended to cover all levels of the header)
HeaderVisible

HoistItem :any

The HoistItem property defines the control's hoisted item, promoting it along with all its visible children to the top level without altering its content or properties.

By default,

  • hoisting an item also displays all of its parent rows up to the root. To restrict the view so that only the hoisted item and its visible children are shown, set the FilterInclude property to exMatchingItemsOnly
  • when an item is hoisted, all of its child rows are automatically expanded. To preserve their original expand/collapse state, use the Layout property to save the current layout before changing the hoist, and restore it immediately afterward.
For reference, the Selection property specifies the currently selected row, while the Item property retrieves the row by its index.

The HoistItem property could be any of the following:

  • {null}, removes any existing hoisted item and returns the control to its default state
  • {number}, indicates a numeric value that defines the index of the hoisted item
  • {string}, specifies a string expression that defines the identifier/key of the hoisted item
  • {Item}, specifies the object reference to the hoisted item
By default, if no hoisted item is defined, the HoistItem property is set to null or undefined.
Type:
  • any
Since:
  • 4.8
Example
0 {number}, hoists the first item (index 0)
"id" {string}, hoists the item with the identifier/key "id"
item {Item}, hoists the item referenced by the Item object
HoistItem

ImageAlign :number

The ImageAlign property gets or sets the alignment of the cell's image. The Column.ImageAlign property takes priority over the control's ImageAlign property, and the Cell.ImageAlign property takes priority over the Column.ImageAlign property. When the Cell.ImageAlign property is null, the alignment falls back to the Column.ImageAlign property, and if the Column.ImageAlign property is also null, the control's ImageAlign property is used. The alignment can be one of the following:
  • 0, the image is on the left of the cell's caption
  • 1, the image is on the right of the cell's caption
  • 2, the image is on the top of the cell's caption
  • 3, the image is on the bottom of the cell's caption

The Cell.Image property gets or sets the cell's individual image. The Column.FormatImage property defines the expression to determine the images the column display. The Column.Image property sets or gets the column's image. By default, the ImageAlign property is set to 0 (the image is aligned left to the caption).

Type:
  • number
Example
null {null}, the image is aligned left to the caption (default)
1 {number}, the image is displayed to the right of the cell's caption
ImageAlign

ImageSize :any

The ImageSize property gets or sets the size of the cell's image. The size can be defined as explained:
  • {null}, Indicates that the cell's image is displayed as it is (full-sized).
  • {number}, Specifies that the cell's image is displayed into a square of giving size (same width and height). If 0 the item displays no image, if negative the cell's image is stretched to giving square, else the item's picture is scaled to fit the giving rectangle.
  • {number[]}, Specifies an array of [aspect-width,aspect-height] type that defines the limits for width or/and height. The aspect-width and aspect-height define the width/height of the item's picture to scale or stretch to.

The Column.ImageSize property takes priority over the control's ImageSize property, and the Cell.ImageSize property takes priority over the Column.ImageSize property. When the Cell.ImageSize property is null, the size falls back to the Column.ImageSize property, and if the Column.ImageSize property is also null, the control's ImageSize property is used. In short, the size priority is: Cell -> Column -> Control. By default, the ImageSize property is set to 16.

Type:
  • any
Example
null {null}, Indicates that the cell's image is displayed as it is (full-sized).
0 {number}, no image is displayed
64 {number}, the image is scaled to fit a 64 x 64 rectangle
-64 {number}, the image is strected to a 64 x 64 rectangle
[32,64] {array}, scales the image to the largest ratio-rectangle (32 x 64) that fits the client
[-32,-64] {array}, stretches the image to a 32 x 64 rectangle
ImageSize

ItemAllowSizing :boolean

The ItemAllowSizing property determines whether all or none of the item are resizable or fixed. The allowActions field must include "item-resize" action to enable item resizing. The "item-resize[all]" action enables resizing all items, while the missing "item-resize" action disables resizing for all items. The Item.AllowSizing property can override this property for individual items. If allowActions property does not include "item-resize" action, then no item can be resized regardless of the ItemAllowSizing property value. The "item-resize[all]" action takes precedence over the ItemAllowSizing property. The DefaultItemHeight property is updated if the user resizes the item at runtime by drag an drop (AllowActions property must include "item-resize[all]"). By default, the ItemAllowSizing property is set to false, which makes all items non-resizable.
Type:
  • boolean
Example
false {boolean}, none of the items are resizable (unless the Item.AllowSizing property is true)
true {boolean}, all of the items are resizable (unless the Item.AllowSizing property is false)
ItemAllowSizing

(readonly) Items :Items

The Items property returns the control's items. The Items property is equivalent with GetItems() method. The Add or Remove methods of the Items object could be used to add or remove items from the control. The Columns property returns the control's columns. The Add or Remove methods of the Columns object could be used to add or remove columns from the control. The Import or Data method loads data into the control, and the Export method extracts data from the control, all in a specific format. The ConditionalFormats property returns the control's conditional formats. The Add or Remove methods of the ConditionalFormats object could be used to add or remove conditional formats from the control.
Type:
Example
The following statements are equivalents:

 oPivot.GetItems(), returns the control's items
 oPivot.Items, returns the control's items

where oPivot is an object of Pivot type
Items

Layout :string

The Layout property gets/sets the UI layout of the object. The Layout property is equivalent with GetLayout()/SetLayout() methods. Currently, the control's Layout property serializes the following:
  • layout of windows (size, dock, parent)
  • pattern of the control's filter-prompt
  • view's horizontal and vertical scroll position
  • column's width, visibility, position, expand/collapse state, sort-order, sort-position, filter, filter-type
  • selected, expanded/collapsed items
  • control's zoom
Type:
  • string
Example
The following statements are equivalents:

oPivot.GetLayout(), gets the control's layout
oPivot.Layout, gets the control's layout

where oPivot is an object of Pivot type
Layout

LinesAtRoot :Pivot.LinesAtRootEnum

The LinesAtRoot property links items at the root of the hierarchy. The LinesAtRoot property specifies whether the root items are connected with a line. The TreeColumnIndex property gets or sets the index or identifier/key/caption of the column that displays the hierarchy. The HasLines property customizes the color, width and style of the control's hierarchy-lines. The HasButtons property shows or hides the expand/collapse glyphs (+/- buttons to expand-collapse the item). By default, the LinesAtRoot property is set to exNoLinesAtRoot (0), meaning that no lines are shown at root items.
Type:
Since:
  • 1.4
Example
0 or exontrol.Pivot.LinesAtRootEnum.exNoLinesAtRoot {number}, no lines at root items
-1 or exontrol.Pivot.LinesAtRootEnum.exLinesAtRoot {number}, the control links the root items
LinesAtRoot

Listeners :object

The Listeners field defines the events of the control, as an object of exontrol.Lts type. The exontrol.Lts type supports forEach(callback, thisArg) method that helps you to enumerate the events the control supports. The on() method adds an event listener to the specified event or defines a keyboard shortcut. The on() method enables you to listen for events and execute custom code when those events occur, or to define keyboard shortcuts that trigger specific actions within the component. You can use the on() method to enhance the interactivity and functionality of your application by responding to user actions or keyboard inputs. Use the off() method to remove previously bound event handlers or keyboard shortcuts. The Events section lists the events the component supports.
Type:
  • object
Example
The following sample shows how you can get all events the component currently supports:

oPivot.Listeners.forEach(function(name)
{
 console.log(name);
});

The following sample displays information about the item being clicked:

oPivot.Listeners.Add("onclick", function (oEvent)
{
 console.log(oEvent);
});

or

oPivot.on("click", function (oEvent)
{
 console.log(oEvent);
});

where oPivot is an object of Pivot type
Listeners

Locked :boolean

The Locked property locks or unlocks the control. The user can't select any item, sort any column, or edit any item when the control is locked(protected). The ReadOnly property sets the control in read-only mode. While in read-only mode, the user can't edit or drag any item. The CountLockedColumns property locks columns on both the left and right sides of the view using a single byte in {high, low} format. The Item.Lock property locks or unlocks the item, placing it at the top, bottom, or making it scrollable. The ShowLockedItems property indicates whether the locked/fixed items are visible or hidden. By default, the control is unlocked. The Locked property can be get or set using the GetLocked() and SetLocked() methods.
Type:
  • boolean
Example
false {boolean}, unlocks the control (can select any item)
true {boolean}, locks the control (can't select any item)
Locked

Margins :object

The Margins property specifies the control's margins, which define the indentation between a parent and its children. The TreeColumnIndex property gets or sets the index or identifier/key/caption of the column that displays the hierarchy. The HasButtons property shows or hides the expand/collapse glyphs (+/- buttons to expand-collapse the item). The Margins property can be get or set using the GetMargins() and SetMargins() methods. By default, the Margins property is set to null, which indicates an indentation of 16-pixels between a parent and its children.
Type:
  • object
Example
null {null}, the control uses the default indentation of 16-pixels between a parent and its children
{indent: 0} {object}, specifies no indentation between a parent and its children
{indent: 24} {object}, specifies an indentation of 24-pixels between a parent and its children
Margins

Misc :MiscellaneousOptions

The Misc property defines the control's miscellaneous options. The miscellaneous options include various settings that do not fall under specific categories but are essential for customizing the control's behavior and appearance. These options provide additional flexibility in configuring the pivot table to meet specific requirements and enhance the user experience.
Type:
  • MiscellaneousOptions
Since:
  • 4.2
Example
oPivot.Misc = { columnEmptyPivotRows: "*", rowEmptyPivotRows: "Total" }, defines the control's miscellaneous options, where columnEmptyPivotRows specifies the caption of the first column when no pivot rows are set, and rowEmptyPivotRows defines the caption for the single row when no pivot rows are specified. In this case, the pivot columns determine the aggregate functions applied to the entire dataset without grouping by pivot rows.
Misc

OnErrorChooseFile :boolean

The OnErrorChooseFile property specifies whether the control displays an input-file to let user choose a local filte to import, as soon as an error occurs. The onerror event occurs when an error occurs during the loading of the control, such as when the data source is not accessible or when the file being imported has an unsupported format. If the OnErrorChooseFile property is set to true, the control displays an input-file to let user choose a local file to import, as soon as an error occurs. If the user selects a file and clicks "Open", the control attempts to import the selected file using the Import method, based on the file extension. If the OnErrorChooseFile property is set to false, no input-file is displayed as soon an error occurs. The ChooseFile() method clears the control's data and adds an input-file element to let user choose a local file (CSV or XML format) to import data from. By default, the OnErrorChooseFile property is set to true, so the control displays an input-file to let user choose a local file to import, as soon as an error occurs.
Type:
  • boolean
Example
false {boolean}, no input-file is displayed as soon an error occurs
true {boolean}, the control displays an input-file to let user choose a local filte to import, as soon as an error occurs
OnErrorChooseFile

Options :Pivot.Options

The Options property specifies the control's general settings. By default, the control's oTV field determines its default tree-view, so the GetOptions and SetOptions methods of the oTV field are used to retrieve or update the control's options. The Options property functions identically to calling GetOptions/SetOptions on the oTV field. Each option corresponds to a specific Get/Set... method of the view, meaning that updating an option is equivalent to invoking the related Get/Set... method. For example, setting the allowGroupBy option is the same as calling the view's GetAllowGroupBy()/SetAllowGroupBy(value) methods.
Type:
Example
The following statements are equivalents:

 oPivot.SetOptions({ allowGroupBy: true }), sets the allowGroupBy option to true
 oPivot.Options = { allowGroupBy: true }, sets the allowGroupBy option to true
 oPivot.oTV.SetAllowGroupBy(true), sets the allowGroupBy option to true

where oPivot is an object of Pivot type
Options

Pad :number|Array.<number>|string

The Pad property gets or sets the item's padding or the space between item's content and its borders. The Column.Pad property takes priority over the control's Pad property, and the Cell.Pad property takes priority over the Column.Pad property. When the Cell.Pad property is null, the padding falls back to the Column.Pad property, and if the Column.Pad property is also null, the control's Pad property is used. In short, the padding priority is: Cell -> Column -> Control. By default, the Pad property is set to null that indicates the default padding value of [4,4] is applied. The value can be:
  • {number} a numeric value, to pad horizontal and vertical size with the same value
  • {(string|number[])} a "x,y" or [x,y] type to specify the padding on horizontal and vertical side
By default, the Pad property is set to null that indicates the default padding value of [4,4] is applied.
Type:
  • number | Array.<number> | string
Example
null {null}, indicates that the default padding value of [4,4] is applied
0 {number}, indicates no padding
"8,4" {string}, increases the item's width with 2 * 8-pixels and item's height with 2 * 4-pixels
[8,4] {array}, increases the item's width with 2 * 8-pixels and item's height with 2 * 4-pixels
Pad

PivotBarVisible :Pivot.PivotBarVisibleEnum

The PivotBarVisible property shows or hides the control's pivot bar (it displays the layout of the pivot-table). The pivot bar is a header that displays the layout of the pivot-table, and allows changing the pivot-table's layout by dragging columns from/to the pivot bar. The pivot bar can be shown or hidden using the pivotBarVisible field, and it can be resized as well. The PivotBarVisibleEnum type supports the following values:
  • exPivotBarHidden(0), the pivot bar is hidden.
  • exPivotBarVisible(1), the pivot bar is visible. include or exclude this flag to show or hide the pivot bar.
  • exPivotBarSizable(2), the pivot bar is sizable. Include or exclude this flag to allow or prevent resizing the pivot bar at runtime. If this flag is present, the user can resize the pivot bar by dragging the bottom side of the control. The resize cursor is shown when the pivot bar is resizable and cursor hovers the bottom side of the pivot bar.
  • exPivotBarFloat(4), the pivot bar is shown into a floating window. Include this flag, to display the pivot bar to a separate window (a floating panel)
  • exPivotBarAutoFit(8), the pivot bar's size is updated automatically so all elements fits the client area (When this flag is present, the height of the pivot's bar is automatically adjusted so the entire content fits the header).
  • exPivotBarShowTotals(16), the pivot bar shows the total/sub-total fields. Include or exclude this flag to show or hide the Total field in the pivot bar.
  • exPivotBarAutoHide(32), shows the pivotbar as soon as the cursor hovers it, and hides it as soon as the cursor leaves it
  • exPivotBarAllowValues(64), specifies if the user can drop values of the columns to the pivot bar.
  • exPivotBarAllowFormatAppearance(128), specifies if the user can select a different appearance for columns or total/subtotal fields.
  • exPivotBarAllowFormatConditionalAppearance(0x1000000), specifies if the user can select conditional appearance for columns.
  • exPivotBarAllowFormatContent(256), specifies if the user can select the way the column's data is displayed.
  • exPivotBarAutoUpdate(512), indicates whether the control' list (pivot-table) is automatically updated once the user drops objects in the pivot bar. Exclude this flag from the pivotBarVisible property, and so the Refresh button is shown in the bottom side of the control, and the changes will be applied to the control's list once the user clicks the Refresh button. Once the data is updated, the buttons shows as disabled until next change occurs.
  • exPivotBarAllowUndoRedo(1024), indicates if the pivot bar allows Undo/Redo operations, if the user presses the CTRL+Z/Y. The control restores the previously layout once the user presses the CTRL + Z keys combination. The control restores the next layout once the user presses the CTRL + Y keys combination. Exclude this flag, and the Undo/Redo feature is disabled.
  • exPivotBarAllowResizeColumns(2048), indicates if the user can resize the columns in the pivot bar. This flag affects the columns to be displayed din the pivot bar, not the columns to be displayed in the control's list.
  • exPivotBarHideAddNew(4096), prevents showing the add new buttons in the pivot bar. Clicking the Add New button displays a list of columns or aggregate functions that can be added in the current context.
  • exPivotBarContextSortAscending(0x10000), shows the columns alphabetically in ascending order. This flag can be combined with exPivotBarContextSortReverse and so, the columns will be alphabetically displayed in descending order.
  • exPivotBarContextSortReverse(0x100000), shows the columns in reverse order. This flag can be combined with exPivotBarContextSortAscending and so, the columns will be alphabetically displayed in descending order.
  • exPivotBarReadOnly(0x10000000), makes the pivot bar read only, so no changes are allowed
  • exPivotBarSingleAggregate(0x20000000), restructures the pivot-bar into three sections: a pivot-rows section docked to the left, a pivot-columns section docked to the top-right, and a top-left corner section for defining the column and aggregate function for the pivot table (@since 4.2)
Type:
Example
false {boolean} or 0 {number}, the control's pivotbar is hidden
0x10000000 or exontrol.Pivot.PivotBarVisibleEnum.exPivotBarReadOnly {number}, shows a read-only pivot bar (no changes are allowed)
PivotBarVisible

PivotColumns :string

The PivotColumns property defines the list of columns to be displayed in the pivot-table. The PivotRows property specifies the list of group-by columns that determines the rows in the pivot-table. The PivotTotals property specifies the list of total/sub-total fields to be displayed in the pivot-table. By default, the control displays the source data, so the PivotColumns property is empty. Once the PivotColumns property is set, the control displays the pivot-table based on the defined columns. The user can change the layout of the pivot-table at runtime by dragging and dropping columns between the source data and the pivot bar (if the pivot bar is visible and allows changes).

The pivotColumns in BNF notation is:

pivotColumns ::= "<Aggregate>[,<Aggregate>]"
Aggregate ::= <AggregateKey>(<Index>)[<Options>] | <AggregateKey>(<Index>)[<Options>]/<Index>[:<Order>][<Options>][;<Index>[:<Order>][<Options>]]
Index ::= <Digit>[<Digit>]
Digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Order ::= A | D
Options ::= \[<Option> | ,<Option>\]
Option ::= <CheckOption> | content=<RadioOption>
where
Index, is the index of the column
CheckOption is any Key in the FormatAppearances collection
RadioOption is any Key in the FormatContents collection
AggregateKey, is any Key in the Aggregates collection
Type:
  • string
Example
"sum(5)" {string}, adds a single column that displays the sum of data column with the index 5
"sum(5)[content=numeric]/12" {string},  adds a column for each unique value found in the data column with the index 12, and each column displays the sum of data column with the index 5 as numeric, associated with the value of the data column
"sum(5)[content=numeric]/12;6" {string},  groups by data columns with the index 12 and 6, and adds a new column for each unique value found, by displaying the sum of data column with the index 5 as numeric, for the associated values in the data columns
"sum(5)[bold,content=numeric],sum(5)[content=numeric]/12;6" string, adds a single column that displays the sum of data column with the index 5 in bold as numeric, and follows the group-by data columns shown earlier
PivotColumns

PivotColumnsFloatBarVisible :exontrol.Tree.ColumnsFloatBarVisibleEnum

The PivotColumnsFloatBarVisible property shows or hides the pivot-columns window (it displays the columns that can used to build the pivot-table). The pivot-columns floatbar is a window that displays the columns that can used to build the pivot-table, it can be shown or hidden using the PivotColumnsFloatBarVisible property, and it can be floated or docked to the right of the control as well.

The exontrol.Tree.ColumnsFloatBarVisibleEnum type supports the following values:

  • exColumnsFloatBarHidden(0), the pivot-columns floatbar is hidden
  • exColumnsFloatBarVisible(1), the pivot-columns floatbar is visible. This flag can be combined with exColumnsFloatBarFloat flag, to show the pivot-columns floatbar as floated
  • exColumnsFloatBarFloat(0x100), the pivot-columns floatbar is shows as floated. This flag can be combined with exColumnsFloatBarVisible type.
Type:
  • exontrol.Tree.ColumnsFloatBarVisibleEnum
Example
false {boolean} or 0 {number}, the control shows no pivot-columns floatbar
true {boolean} or 1 {number}, the control shows the pivot-columns floatbar
0x101 or exontrol.Tree.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisible | exontrol.Tree.ColumnsFloatBarVisibleEnum.exColumnsFloatBarFloat {number}, the control's pivot-columns floatbar is visible and floated
PivotColumnsFloatBarVisible

PivotRows :string

The PivotRows property defines the list of group-by columns that determines the rows in the pivot-table. The PivotColumns property specifies the list of columns to be displayed in the pivot-table. The PivotTotals property specifies the list of total/sub-total fields to be displayed in the pivot-table. By default, the control displays the source data, so the pivotRows property is empty. Once the pivotRows property is set, the control displays the pivot-table based on the defined group-by columns. The user can change the layout of the pivot-table at runtime by dragging and dropping columns between the source data and the pivot bar (if the pivot bar is visible and allows changes).

The pivotRows in BNF notation is:

pivotRows ::= "<Column>[,<Column>]"
Column ::= <Index>[:<Order>][<Options>]
Index ::= <Digit>[<Digit>]
Digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Order ::= A | D
Options ::= \[<Option> | ,<Option>\]
Option ::= <CheckOption> | content=<RadioOption>
where
Index, is the index of the column
CheckOption is any Key in the FormatAppearances collection
RadioOption is any Key in the FormatContents collection
Type:
  • string
Example
"" {string}, displays the source-data
"0,1:D[bold]" {string}, displays the pivot-table that groups by 0(ascending) and 1(descending) columns, and values of column 1 are shown in bold
PivotRows

PivotTotals :string

The SetPivotTotals() method defines the list of totals/subtotals to be shown in the pivot-table. The PivotRows property specifies the list of group-by columns that determines the rows in the pivot-table. The PivotColumns property specifies the list of columns to be displayed in the pivot-table. By default, the control displays the source data, so the PivotTotals property is empty. Once the PivotTotals property is set, the control displays the totals/subtotals in the pivot-table based on the defined list. The user can change the layout of the pivot-table at runtime by dragging and dropping columns between the source data and the pivot bar (if the pivot bar is visible and allows changes).

The pivotTotals in BNF notation is:

pivotTotals ::= "<Part> | <Part>/<Part>"
Part ::= "<Aggregate>[,<Aggregate>]"
Aggregate ::= <AggregateKey>[<Options>] | <AggregateKey>(<Index>)[<Options>]
Index ::= <Digit>[<Digit>]
Digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Options ::= \[<Option>|,<Option>\]
Option ::= <CheckOption>|content=<RadioOption>
where
Index, is the index of the column
CheckOption is any Key in the FormatAppearances collection
RadioOption is any Key in the FormatContents collection
AggregateKey, is any Key in the Aggregates collection
Type:
  • string
Example
"sum" {string}, adds a total-row (adds the values within each column and shows up the result)
"max/min" {string}, adds a min-row to show up and a max-row to show down
PivotTotals

ReadOnly :boolean

The ReadOnly property sets the control in read-only mode. While in read-only mode, the user can't edit or drag any item. The user can still select item. The Locked property locks or unlocks the control. The user can't select any item, sort any column, or edit any item when the control is locked(protected). By default, the ReadOnly property is set to false (the control is editable). The ReadOnly property can be get or set using the GetReadOnly() and SetReadOnly() methods.
Type:
  • boolean
Example
false {boolean}, the user can edit or drag any item
true {boolean}, the user can not edit or drag the items
ReadOnly

Refresh

The Refresh() method refreshes the control. The BeginUpdate()/EndUpdate() methods can be used to maintain performance while calling the Refresh() method, especially if multiple changes are being made to the control. By default, calling Refresh() method is not required, as the control automatically calls the Refresh() method once the data is loaded using the Data method. However, if you set the data using an asynchronous operation, such as fetching data from a server, you may need to call the Refresh() method after the data is loaded to ensure that the pivot layout is updated according to the current PivotRows, PivotColumns, and PivotTotals properties.
Since:
  • 4.2
Example
oPivot.Refresh(), refreshes the control, to re-apply the PivotRows, PivotColumns, PivotTotals properties, as "data" option is asynchronous operation.
Refresh

Run :Pivot

The Run property returns the runtime-pivot, which displays the generated pivot rows and columns based on the source-pivot' PivotRows, PivotColumns, and PivotTotals properties. The PivotRows property specifies the columns that determine how rows are grouped, the PivotColumns property defines the aggregate columns used to summarize the data, and the PivotTotals property provides the rules for including total and sub-total rows within the runtime-pivot.
Type:
Example
The folowing statements are equivalent:

 oPivot.GetRun() {Pivot}, returns the runtime-pivot that displays the generated pivot rows and columns
 oPivot.Run {Pivot}, returns the runtime-pivot that displays the generated pivot rows and columns
 oPivot.oR {Pivot}, returns the runtime-pivot that displays the generated pivot rows and columns
 
where oPivot is an object of Pivot type
Run

ScrollBars :exontrol.ScrollBarsEnum

The ScrollBars property specifies how the scroll-bars are being displayed into the control. You can use the ScrollBars property to show or hide the control's scroll bars. The ScrollBars property is equivalent with GetScrollBars/SetScrollBars methods. The ScrollBars property uses the exontrol.ScrollBarsEnum enumeration as explained:
  • exNoScroll (0), specifies that no scroll bars are shown (scroll is not allowed)
  • exHorizontal (1), specifies that only the horizontal scroll bar is shown
  • exVertical (2), specifies that only the vertical scroll bar is shown
  • exBoth (3), specifies that both horizontal and vertical scroll bars are shown if the content is larger than the control's client area
  • exDisableNoHorizontal (5), specifies that the horizontal scroll bar is always shown; it is disabled if it is unnecessary
  • exDisableNoVertical (10), specifies that the vertical scroll bar is always shown; it is disabled if it is unnecessary
  • exDisableBoth (15), specifies that both horizontal and vertical scroll bars are always shown; they are disabled if they are unnecessary
  • exHScrollOnThumbRelease (0x100), specifies that the control's content is horizontally scrolled as soon as the user releases the thumb of the horizontal scroll bar
  • exVScrollOnThumbRelease (0x200), specifies that the control's content is vertically scrolled as soon as the user releases the thumb of the vertical scroll bar
  • exScrollOnThumbRelease (0x300), specifies that the control's content is scrolled as soon as the user releases the thumb of the scroll bar
  • exHScrollEmptySpace (0x400), allows empty space when the control's content is horizontally scrolled to the end
  • exVScrollEmptySpace (0x800), allows empty space when the control's content is vertically scrolled to the end
  • exScrollEmptySpace (0xC00), allows empty space when the control's content is scrolled to the end
  • exExtendSBS (0x3000), specifies that the control's scroll bars are visible only when the cursor hovers the window; the control's client area is extended over the scroll bar portion
  • exMinSBS (0xC000), specifies that the control's scroll bars are shown as minimized
  • exHideSBS (0x10000), specifies that no scroll bars are shown (scroll is allowed)

The ScrollPos property scrolls horizontally and/or vertically the control's default view. The onscroll event is fired when the user scrolls the view by mouse, touch or keyboard, or when the view's scroll is changed programmatically by ScrollPos property. By default, the ScrollBars property is set to exBoth value, so both horizontal and vertical scroll bars are shown if the content is larger than the control's client area.

Type:
  • exontrol.ScrollBarsEnum
Example
exontrol.ScrollBarsEnum.exBoth or 3 {number}, specifies that both horizontal and vertical scroll bars are shown if the content is larger than the control's client area
exontrol.ScrollBarsEnum.exNoScroll or 0 {number}, specifies that no scroll bars are shown (scroll is not allowed)
ScrollBars

ScrollPos :object|number

The ScrollPos property scrolls horizontally and/or vertically the control's default view. The onscroll event is fired when the user scrolls the view by mouse, touch or keyboard, or when the view's scroll is changed programmatically by ScrollPos property. The ScrollPos property accepts an object of {x,y} type that defines the control's horizontal and vertical scroll-position. Alternatively, a number value could be specified to set the vertical scroll position only (@since 5.1) as explained:
x {number}, indicates the horizontal scroll-position (in pixels)
y {number}, indicates the vertical scroll-position (in pixels)

The ScrollBars property specifies how the scroll-bars are being displayed into the control.

Type:
  • object | number
Example
{x:0, y:100} {object}, scrolls the control's default view to horizontal position 0 and vertical position 100 (in pixels)
200 {number}, scrolls the control's default view to vertical position 200 (in pixels)
ScrollPos

Selection :Item|array

The Selection property gets or sets the control's selection. The Selection property can be used as a getter or setter. The SingleSel property gets or sets the control's selection to single, multiple or toggle. The Item.Selected property defines whether the item is selected. The onselchange event is raised when the selection is changed. The Selection property is equivalent to GetSelection() and SetSelection() methods. The Selection supports any of the following values:
  • {null}, clears the entire selection (unselect all)
  • {number}, selects an item giving index within the items collection
  • {string}, selects an item giving its identifier/key
  • {Item}, selects an item giving its reference
  • {Items}, selects all items within the control
  • {array}, specifies an array of [type] type, where type could be any number, string or Item type.
Type:
Example
The following statements are equivalents:

oPivot.Selection, gets the control's selection
oPivot.GetSelection(), gets the control's selection

oPivot.Selection = value, sets the control's selection
oPivot.SetSelection(value), sets the control's selection

where oPivot is an object of Pivot type
Selection

Shapes :string

The Shapes property specifies the shapes assigned to each part of the control. These shapes define the visual appearance of the control's elements, such as borders, fills, and other graphical components. By setting this property, you can fully customize how the control is drawn and displayed. The Cell.Shape property changes the shape for the cell itself. The Column.CellShape property gets or sets the shape to apply on the column's body/data/cells. The Item.Shape property defines the shape for the item itself. The Column.Shape property changes the shape for the column itself (column's header).

The format of the property is:

"shape(part),shape(part),..."
where:
  • "shape", defines the shape to apply on the UI part as one of the following:

    ◦ any of 140 color names any browser supports (such as red, blue, green, ...)
    ◦ hexadecimal colors, is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. All values must be between 00 and FF (such as #0000ff which defines a blue background)
    ◦ hexadecimal colors with transparency, is specified with: #RRGGBBAA, where AA (alpha) value must be between 00 and FF (such as #0000ff80 which defines a semi-transparent blue background)
    ◦ RGB colors, is specified with the RGB(red, green, blue) function. Each parameter (red, green, and blue) defines the intensity of the color and can be an integer between 0 and 255( such as rgb(0,0,255) that defines a blue background)
    ◦ RGBA colors, are an extension of RGB color values with an alpha channel as RGBA(red, green, blue, alpha) function, where the alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque) ( such as rgba(0,0,255,0.5) which defines a semi-transparent blue background)
    ◦ HSL colors, is specified with the HSL(hue, saturation, lightness) function, where hue is a degree on the color wheel (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue. saturation is a percentage value; 0% means a shade of gray and 100% is the full color. lightness is also a percentage; 0% is black, 100% is white. HSL stands for hue, saturation, and lightness - and represents a cylindrical-coordinate representation of colors (such as hsl(240, 100%, 50%) that defines a blue background)
    ◦ HSLA colors, are an extension of HSL color values with an alpha channel - which specifies the opacity of the object as HSLA(hue, saturation, lightness, alpha) function, where alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque) (such as hsla(240, 100%, 50%,0.5) that defines a semi-transparent blue background)
    ◦ a JSON representation of the shape object to apply (while it starts with { character, such as '{"normal": {"primitive": "RoundRect","fillColor":"black","tfi": {"fgColor": "white"}}}')
    ◦ specifies the name of the field within the exontrol.Shapes.Pivot object (while it starts with a lowercase letter, such as shitem which refers to exontrol.Shapes.Pivot.shitem shape)
    ◦ specifies the name of the field within the exontrol.Shapes object (while it starts with an uppercase letter, such as Button which refers to exontrol.Shapes.Button shape)

  • "part", defines the name of the part the shape is applied on (as defined below)
The shapes property supports any of the following parts:
Part Description
"cell"defines the visual-appearance for all cells within the control. The Cell.Shape property changes the shape for the cell itself. The Column.CellShape property gets or sets the shape to apply on the column's body/data/cells.
"check"defines the visual-appearance of the check-box
"column"defines the visual-appearance of column's header. The Column.Shape property changes the shape for the column itself (column's header).
"column-filter"defines the visual-appearance of column's filter-button
"expand"defines the visual-appearance of expand/collapse glyphs
"filterBar"defines the visual-appearance of the control's filter-bar
"filterBar-close"defines the visual-appearance of the filter-bar's close button
"frameFit"specifies the visual appearance of the frame that is displayed while fitting objects into the control's client area during a drag operation
"frameSel"defines the visual appearance to display a frame while selecting objects by drag
"item"defines the visual-appearance for all items within the control. The Item.Shape property defines the shape for the item itself.
"itemAlt"defines the visual-appearance for alternate-items (every second item). The Item.Shape property defines the shape for the item itself.
"itemDiv"defines the visual-appearance for divider-items (a divider-item displays only a single-cell). The Item.Shape property defines the shape for the item itself.
"lock"defines the visual-appearance for locked-part of the tree-view (left and right-side panel of the tree-view, determined by the countLockedColumns field, displays un-scrollable columns)
"lock-header"defines the visual-appearance for locked-part of the header (left and right-side panels of the header, determined by the countLockedColumns field, displays un-scrollable columns). The "lock-header" and "lock-header-right" are background shapes and may be overridden by columns, so set exontrol.Shapes.Pivot.shcolumn.normal.fillColor = "rgba(0,0,0,0.25)" for a partially transparent background.
"lock-header-right"defines independent styling of right-locked-part of the header (right-side panel of the header, determined by the countLockedColumns field, displays un-scrollable columns). The "lock-header" and "lock-header-right" are background shapes and may be overridden by columns, so set exontrol.Shapes.Pivot.shcolumn.normal.fillColor = "rgba(0,0,0,0.25)" for a partially transparent background. (@since 4.6)
"lock-items"defines the visual appearance of top or bottom-locked items in the tree view (these locked items, displayed in the top and bottom panels of the tree view (as determined by the SetLockedItemsCount method), remain fixed and do not scroll) (@since 4.6)
"lock-items-bottom"defines independent styling of the bottom-locked items in the tree view (these items appear in the bottom panel (as determined by the SetLockedItemsCount method) and remain fixed without scrolling) (@since 4.6)
"lock-right"defines independent styling of the right-locked columns (items section only, not including the header) (right-side panel of the tree-view, determined by the countLockedColumns field, displays un-scrollable columns) (@since 4.6)
"multiSel"specifies the visual appearance to show the count of multiple-selected items (for instance, when you drag and drop multiple items at once)
"radio"defines the visual-appearance of the radio-button
"select"defines the visual-appearance of selected-item
"sortBar-caption"defines the visual-appearance of control's sortbar when it displays no columns
"unlock"defines the visual-appearance for unlocked-part of the tree-view (ride-side panel of the tree-view, determined by the countLockedColumns field, displays scrollable columns)
"unlock-header"defines the visual-appearance for unlocked-part of the header (ride-side panel of the header, determined by the countLockedColumns field, displays scrollable columns)

The expivot/js control supports additional parts as listed in the table below:

Part Description
"itemTot"defines the visual-appearance for item of total type
"itemSub"defines the visual-appearance for item of sub-total type
"pivotBar-addNew"defines the visual-appearance of the "add-new" buttons within the control's pivotbar
"pivotBar-aggregate"defines the visual-appearance of an aggregate-glyph within the control's pivotbar
"pivotBar-idem"defines the visual-appearance of idem-columns within the control's pivotbar
"pivotBar-refresh"defines the visual-appearance of the "Refresh" button within the control's pivotbar
"pivotBar-total"defines the visual-appearance of a total-field within the control's pivotbar

The exgantt/js control supports additional parts as listed in the table below:

Part Description
"date-ticker"defines the visual-appearance to indicate the date-time being hovered
"level"defines the visual-appearance for level's header
"nw"defines the visual-appearance to show the non-working units
"select-bar"defines the visual-appearance of selected item-bar
"select-chart"defines the visual-appearance of selected-item (applied to chart section only)
"select-date"defines the visual-appearance to display a selected-date
"select-overview"defines the visual-appearance to display the overview-selection
"select-overview-resize"defines the visual-appearance to display left/right resize-margins of the overview-selection (@since 2.4)
"selectout-overview"defines the visual-appearance to display the left/right parts outside of the overview-selection (@since 2.4)
"selectunit-overview"defines the visual-appearance to display the selected unit within the control's overview (@since 2.4)
"unavailableunit-overview"defines the visual-appearance to display unavailable-units within the control's overview (@since 2.4)
Type:
  • string
Example
null {null}, specifies the default visual appearance
"" {string}, no shape (no visual appearance is applied to any part of the control)
"red(itemAlt)", "#FF0000(itemAlt)", "rgb(255,0,0)(itemAlt)", "rgba(255,0,0,1)(itemAlt)" {string}, shows alternate-items in red
'{"hover":{"fillColor":"black","tfi":{"fgColor":"white"}}}(item)' {string}, shows the item in white on a black-background, while the cursor hovers it
"xxx(d),yyy(d,m),zzz(y)"  {string}, specifies that the exontrol.Shapes.Pivot.xxx combined with exontrol.Shapes.Pivot.yyy object defines the visual appearance of "d" part of the control, exontrol.Shapes.Pivot.yyy object defines the visual appearance of "m" part of the control and exontrol.Shapes.Pivot.zzz object defines the visual appearance of "y" part of the control
Shapes

Shortcuts :object

The Shortcuts field defines the shortcuts of the control, as an object of exontrol.Sts type. The Shortcuts field defines the shortcuts of the control, as an object of exontrol.Sts type. The on() method enables you to listen for events and execute custom code when those events occur, or to define keyboard shortcuts that trigger specific actions within the component. You can use the on() method to enhance the interactivity and functionality of your application by responding to user actions or keyboard inputs. Use the off() method to remove previously bound event handlers or keyboard shortcuts. In order to provide keyboard support for the component, the owner <canvas> element must include the tabIndex attribute, as <canvas ... tabIndex="0">. You can associated a function or a callback to any shortcut.
Type:
  • object
Example
The following sample removes the selection (calls the RemoveSelection() method) once the user presses the Delete key:

oPivot.Shortcuts.Add( "Delete", oPivot.RemoveSelection, oPivot );

where oPivot is an object of Pivot type
Shortcuts

ShowBranchRows :exontrol.Pivot.ShowBranchRowsEnum

The ShowBranchRows property defines how the branch rows display information. The branch rows are the rows that separate the different branches of the pivot rows, and they can display information such as the aggregate value for the branch, or simply be a divider between branches.

The ShowBranchRowsEnum type supports the following values:

  • exBranchTree(1), the exBranchTree mode presents data in a tree structure within a single column for pivot row columns featuring +/- buttons for node expansion and collapse
  • exBranchColumns(3), in exBranchColumns mode, a new column is added for each pivot row column without displaying +/- buttons.
  • exBranchRowDivider(0x10), the branch rows display information across the entire line. The exBranchRowDivider flag can only be combined with the exBranchTree or exBranchColumns flags
  • exBranchIncludeAggregate(0x20), the branch rows displays result of aggregate function. The exBranchIncludeAggregate flag can only be combined with the exBranchTree or exBranchColumns flags
Type:
  • exontrol.Pivot.ShowBranchRowsEnum
Since:
  • 4.1
Example
0x21 or exontrol.Pivot.ShowBranchRowsEnum.exBranchTree | exontrol.Pivot.ShowBranchRowsEnum.exBranchIncludeAggregate {number}, the data is presented in a tree structure, while the branch rows display the results of aggregate functions.
ShowBranchRows

ShowDataOnDblClick :boolean

The ShowDataOnDblClick property shows the original data that generated the result once the user double clicks the item. The default value is true, which means that the control displays the original data that generated the result, as soon as user double-clicks the item. If you set it to false, there is no effect, instead the expandOnDblClick has effect (specifies whether the item is expanded or collapsed once the user double-clicks the item). The ShowDataOnDblClick property is useful when you want to disable the expand/collapse feature of double-clicking an item, and instead show the original data that generated the result when the user double clicks the item.
Type:
  • boolean
Example
false {boolean}, no effect, instead the expandOnDblClick has effect (specifies whether the item is expanded or collapsed once the user double-clicks the item)
true {boolean}, the control displays the original data that generated the result, as soon as user double-clicks the item (expandOnDblClick has no effect)
ShowDataOnDblClick

ShowIdem :string

The ShowIdem property defines the symbol used to indicate repeated captions, offering a clear visual cue for identical entries. The showIdem option is effective only when the ShowBranchRows property is set to exBranchColumns mode. The ShowIdem property is particularly useful for enhancing readability and reducing visual clutter in scenarios where multiple rows share the same caption, allowing users to quickly identify and associate related data entries. By default, the showIdem property is set " " (empty string), which means that repeated captions will be displayed as empty, providing a clean and organized appearance for the pivot table.
Type:
  • string
Since:
  • 4.2
Example
"" {string} or null {null}, no effect
" " {string}, empty string is displayed for repeated captions
"&lt;fgcolor lightgray&gt;&amp;#12291;" {string}, displays the " symbol (ditto mark or quote character) for repeated captions in light gray (idem).
ShowIdem

ShowLockedItems :boolean

The ShowLockedItems property indicates whether the locked/fixed items are visible or hidden. The locked/fixed items are displayed on top or bottom side of the view based on the Item.Lock property that specifies or retrieves the section of the control where the item is placed - either locked at the top, scrollable, or locked at the bottom. The locked/fixed items are not affected by sorting or grouping operations. The SetLockedItemsCount() method specifies the number of items fixed on the top or bottom side of the control. The ShowLockedItems property is set to true by default, which makes the locked/fixed items visible.
Type:
  • boolean
Example
false {boolean}, the control's locked/fixed items are not shown
true {boolean}, the control's locked/fixed items are visible
ShowLockedItems

SingleSel :Pivot.SingleSelEnum

The SingleSel property gets or sets the control's selection to single, multiple or toggle. The SingleSel property accepts an OR combination of Pivot.SingleSelEnum flags that specifies how user can select items. The SingleSel property can be used as a getter or setter. The SingleSel property is equivalent to GetSingleSel() and SetSingleSel() methods. The Item.Selected property defines whether the item is selected. The onselchange event is raised when the selection is changed. The onselchange event is raised when the selection is changed. By default, the SingleSel property is set to exontrol.Pivot.SingleSelEnum.exEnableSel, which enables multiple-selection.
Type:
Example
0 or exontrol.Pivot.SingleSelEnum.exDisableSel {number}, disables selecting any item
3 or exontrol.Pivot.SingleSelEnum.exSingleSel | exontrol.Pivot.SingleSelEnum.exEnableSel {number}, enables control's single selection, so only a single item can be selected
6 or exontrol.Pivot.SingleSelEnum.exToggleSel | exontrol.Pivot.SingleSelEnum.exSingleSel {number}, enables control's single and toggle selection, which means that once a item is selected it gets unselected once it is clicked, or reverse, and only a single-item can be selected at once.
SingleSel

SingleSort :boolean

The SingleSort property specifies whether the control supports single or multiple-columns sort. The Sorts/GetSorts()/SetSorts(value) {string}, sorts(groups) multiple-columns at once giving a string-representation such as "1:A 2:D, 0:A". By default, the control supports multiple-columns sort. The Column.AllowSort property specifies whether the column is sortable. The Column.SortOrder property gets or sets the column's sort-order. The AllowGroupBy property specifies whether the control supports group-by view. The onchange("sort-column") event notifies that a column has been sorted through user interaction by clicking its header. The Column.AllowGroupBy property specifies whether the column can be grouped by.
Type:
  • boolean
Example
false {boolean}, specifies that the control supports one ore more sorted-columns
true {boolean}, the control supports single-column sorts only
SingleSort

SortBarCaption :string

The SortBarCaption property gets or sets the caption to be shown on the control's sortbar when it is empty. The caption supports HTML tags for formatting. The SortBarVisible/GetSortBarVisible()/SetSortBarVisible(value) {boolean}, shows or hides the control's sortbar. The sortbar displays the header of each sorted/grouped-columns. The Sorts/GetSorts()/SetSorts(value) {string}, sorts(groups) multiple-columns at once giving a string-representation such as "1:A 2:D, 0:A". By default, the control's sortbar shows the caption "Drag a column header here to sort by that column." when no columns has been dropped onto it.
Type:
  • string
Example
null {null}, the control's sortbar shows the default-caption
"Drag a &lt;b&gt;column&lt;/b&gt; header here to group by that column." {string}, changes the caption to be displayed on the control's sortbar while it is empty.
SortBarCaption

SortBarVisible :boolean

The SortBarVisible property shows or hides the control's sortbar. The sortbar displays the header of each sorted/grouped-columns. The SortBarCaption/GetSortBarCaption()/SetSortBarCaption(value) {string}, specifies the caption to be shown on the control's sortbar when it is empty. The Sorts/GetSorts()/SetSorts(value) {string}, sorts(groups) multiple-columns at once giving a string-representation such as "1:A 2:D, 0:A". The AllowGroupBy property specifies whether the column can be grouped by. By default, the control's sortbar is hidden.
Type:
  • boolean
Example
false {boolean}, hides the control's sortbar
true {boolean}, shows the control's sortbar
SortBarVisible

SortOnClick :Pivot.SortOnClickEnum

The SortOnClick property indicates whether the column gets sorted once the user clicks its header as a value of exontrol.Pivot.SortOnClickEnum type. The Pivot.SortOnClickEnum type defines the following values:
  • exNoSort(0), the column is not sorted when user clicks the column's header.
  • exDefaultSort(-1), The column gets sorted when user the clicks the column's header.
  • exUserSort(-1), The control displays the sort icons, but it doesn't sort the column (not supported)
By default, the SortOnClick property is set to exDefaultSort, meaning that the column gets sorted once the user clicks its header.
Type:
Example
null {null}, specifies the control's default sort on click, equivalent of exDefaultSort
0 {number}, no column gets sorted once the user clicks any column's header
SortOnClick

(readonly) Statistics :string

The Statistics property gives statistics data of objects being hold by the control. The Statistics property is equivalent with GetStatistics() method. The Statistics property returns statistics data of objects being hold by the control such as:
Size: 1,536x754
Zoom: 100%
Column: 4/4
Item: 32/55
Cell: 128/220
Sel: 1
Type:
  • string
Example
The following statements are equivalents:

 oPivot.Statistics, gives statistics data of objects being hold by the control
 oPivot.GetStatistics(), gives statistics data of objects being hold by the control

where oPivot is an object of Pivot type
Statistics

Tfi :string|object

The Tfi property defines the font attributes that are applied to the control's captions and can be set to customize their appearance. The Tfi property can be set by a string such as "b monospace 16" or by an object such as {bold: true, fontName: "monospace", fontSize: 16}, and immediately applies these settings to update the displayed captions. By default, the Tfi property is null, so the canvas uses its own default font defined by exontrol.defGUIFont (typically "12px sans-serif"). CSS fonts applied to surrounding HTML elements do not affect the canvas; the canvas text is independent of page styles, and the default font can be changed by setting exontrol.defGUIFont.

The value as {string} supports any of the following keywords (each keyword can be specified using first letters only such as "b" for "bold) separated by space characters:

  • bold, displays the text in bold (equivalent of <b> tag)
  • italic, displays the text in italics (equivalent of <i> tag)
  • underline, underlines the text (equivalent of <u> tag)
  • strikeout, specifies whether the text is strike-through (equivalent of <s> tag)
  • <fontName name>, specifies the font's family (equivalent of <font name> tag)
  • <fontSize size>, specifies the size of the font (equivalent of <font ;size> tag)
  • <fgColor CSSColor>, specifies the text's foreground color (equivalent of <fgcolor> tag)
  • <bgColor CSSColor>, specifies the text's background color (equivalent of <bgcolor> tag)
  • <shaColor CSSColor;width;offset>, defines the text's shadow (equivalent of <sha color;width;offset> tag)
  • <outColor CSSColor>, shows the text with outlined characters (CSScolor) (equivalent of <out color> tag)
  • <graColor CSSColor;mode;blend>, defines a gradient text (equivalent of <gra color;mode;blend> tag)

Any other word within the string value that's not recognized as a keyword is interpreted as:

  • name of the font (not a number), specifies the font's family (equivalent of <font name> tag)
  • size of the font (number), specifies the size of the font (equivalent of <font ;size> tag)

The value as {object} supports any of the following fields:

  • bold {boolean}, displays the text in bold (equivalent of <b> tag)
  • italic {boolean}, displays the text in italics (equivalent of <i> tag)
  • underline {boolean}, underlines the text (equivalent of <u> tag)
  • strikeout {boolean}, specifies whether the text is strike-through (equivalent of <s> tag)
  • fontName {string}, specifies the font's family (equivalent of <font name> tag)
  • fontSize {number}, specifies the size of the font (equivalent of <font ;size> tag)
  • fgColor {string}, specifies the text's foreground color (CSScolor) (equivalent of <fgcolor> tag)
  • bgColor {string}, specifies the text's background color (CSScolor) (equivalent of <bgcolor> tag)
  • shaColor {object}, specifies an object of {color, width, offset} type that defines the text's shadow (equivalent of <sha color;width;offset> tag), where:
    • color {string}, defines the color of the text's shadow (CSScolor)
    • width {number}, defines the size of the text's shadow
    • offset {number}, defines the offset to show the text's shadow relative to the text
  • outColor {string}, shows the text with outlined characters (CSScolor) (equivalent of <out color> tag)
  • graColor {object}, specifies an object of {color, mode, blend} type that defines a gradient text (equivalent of <gra color;mode;blend> tag), where:
    • color {string}, defines the gradient-color (CSScolor)
    • mode {number}, defines the gradient direction as 0 (left-right), 1 (default, top-bottom), 2 (left-center-right), and 3 (top-center-bottom)
    • blend {number}, defines the gradient blend as a value between 0 and 1

CSSColor or CSS legal color values can be specified by the following methods:

  • Hexadecimal colors, is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. All values must be between 00 and FF. For example, #0000ff value is rendered as blue, because the blue component is set to its highest value (ff) and the others are set to 00.
  • Hexadecimal colors with transparency, is specified with: #RRGGBBAA, where AA (alpha) value must be between 00 and FF. For example, #0000ff80 defines a semi-transparent blue.
  • RGB colors, is specified with the RGB(red, green, blue) function. Each parameter (red, green, and blue) defines the intensity of the color and can be an integer between 0 and 255. For example, rgb(0,0,255) defines the blue color.
  • RGBA colors, are an extension of RGB color values with an alpha channel as RGBA(red, green, blue, alpha) function, where the alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque). For example, rgba(0,0,255,0.5) defines a semi-transparent blue.
  • HSL colors, is specified with the HSL(hue, saturation, lightness) function, where hue is a degree on the color wheel (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue. saturation is a percentage value; 0% means a shade of gray and 100% is the full color. lightness is also a percentage; 0% is black, 100% is white. HSL stands for hue, saturation, and lightness - and represents a cylindrical-coordinate representation of colors. For example, hsl(240, 100%, 50%) defines the blue color.
  • HSLA colors, are an extension of HSL color values with an alpha channel - which specifies the opacity of the object as HSLA(hue, saturation, lightness, alpha) function, where alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque). For example, hsla(240, 100%, 50%,0.5) defines a semi-transparent blue.
  • Predefined/Cross-browser color names, 140 color names are predefined in the HTML and CSS color specification. For example, blue defines the blue color.
Type:
  • string | object
Example
null {null}, the tfi field is ignored
"bold monospace 16 &lt;fg blue&gt;" {string}, defines Monospace font of 16px height, bold and blue
{bold: true, fontName: "monospace", fontSize: 16, fgColor: "blue"} {object}, defines Monospace font of 16px height, bold and blue
Tfi

ToolTipDelay :number

The ToolTipDelay property gets or sets how long the mouse pointer must point to an object before the tool tip appears. The ToolTipDelay property accepts a number value that specifies how long the mouse pointer must point to an object before the tool tip appears. The ToolTipDelay property is measured in milliseconds. The ToolTipPopDelay property gets or sets the period in ms of time the tool top remains visible if the mouse pointer is stationary within a control. The ToolTipWidth property gets or sets the width of the tooltip window, in pixels. The default value is 500 ms.
Type:
  • number
Example
0 {number}, the tooltip is shown "immediately"
128 {number}, the tooltip is displayed in 128 ms.
ToolTipDelay

ToolTipPopDelay :number

The ToolTipPopDelay property gets or sets the period in ms of time the tool top remains visible if the mouse pointer is stationary within a control. The ToolTipPopDelay property is expressed in milliseconds. The ToolTipDelay property defines how long the mouse pointer must hover over an object before the tooltip appears. The ToolTipWidth property specifies the width of the tooltip window in pixels.

The property supports the following values:

  • 0 {number}, no tooltip is shown for any object (disabled)
  • -1 {number}, the tooltip stays indefinitely (negative)
  • positive {number}, the tooltip is visible for the specified number of milliseconds (for example, 1000 means that the tooltip is visible for 1 second)

By default, the tooltip remains visible for 5000 milliseconds.

Type:
  • number
Example
0 {number}, no tooltip is shown for any object (disabled)
-1 {number}, the tooltip stays indefinitely (negative)
1000 {number}, the tooltip is visible for 1 second
ToolTipPopDelay

ToolTipWidth :number

The ToolTipWidth property gets or sets the width of the tooltip window, in pixels. The ToolTipWidth property accepts a number value that specifies the width of the tooltip window, in pixels. The ToolTipDelay property gets or sets how long the mouse pointer must point to an object before the tool tip appears. The ToolTipPopDelay property gets or sets the period in ms of time the tool top remains visible if the mouse pointer is stationary within a control. The following values are valid:
0 {number}, no tooltip is shown for any object (disabled)
-1 {number}, the tooltip's content is displayed on a single line (without limit the width of it)
300 {number}, the tooltip's max-width is 300 pixels
The default value is -1.
Type:
  • number
Example
0 {number}, no tooltip is shown for any object (disabled)
-1 {number}, the tooltip's content is displayed on a single line (without limit the width of it)
300 {number}, the tooltip's max-width is 300 pixels
ToolTipWidth

TreeColumnIndex :any

The TreeColumnIndex property gets or sets the index or identifier/key/caption of the column that displays the hierarchy. The HasButtons property shows or hides the expand/collapse glyphs (+/- buttons to expand-collapse the item). The HasLines property customizes the color, width and style of the control's hierarchy-lines. The Margins property specifies the control's margins, which define the indentation between a parent and its children. By default, the TreeColumnIndex property is set to 0, which displays the hierarchy within the first column (index 0).
Type:
  • any
Example
null {null}, no column displays the hierarchy.
0 {number}, the column with the index 0, displays the hierarchy (displays the expand/collapse glyphs)
"xxx" {string}, the column with the key or plain-caption on "xxx" displays the hierarchy.
TreeColumnIndex

WheelChange :number

The WheelChange property gets or sets the amount by which the control scrolls when the user rolls the mouse wheel. You can access or modify this property using the GetWheelChange() and SetWheelChange() methods. By default, WheelChange is set to 18. Setting WheelChange to 0 disables any action from the mouse wheel. When the user rolls the mouse wheel, the control scrolls by the amount specified in WheelChange. Holding SHIFT while scrolling causes the control to scroll horizontally.
Type:
  • number
Example
0 {number}, locks any action the mouse's wheel performs
18 {number}, scrolls the control by 18-pixels when mouse's wheel is rotated (SHIFT + wheel scrolls horizontally)
WheelChange

Zoom :number

The Zoom property defines the zoom factor of the control's content. The zoom factor determines how much the control's content is magnified or reduced. Once the user adjusts the browser's zoom level, the control automatically recalculates its zoom factor to maintain the correct scaling of its content. The ZoomLevels property defines the allowed zoom levels the user can select from. By default, the Zoom property is set to null, indicating a normal view (100% zoom).
Type:
  • number
Example
null {null}, Specifies normal-view (100%)
150 {number}, Indicates that the control's content is magnfied to 150%
Zoom

ZoomLevels :string

The ZoomLevels property defines the allowed zoom levels the user can select from, as a list of numbers separated by comma. The Zoom property defines the zoom factor of the control's content. The zoom factor determines how much the control's content is magnified or reduced. Once the user adjusts the browser's zoom level, the control automatically recalculates its zoom factor to maintain the correct scaling of its content.
Type:
  • string
Example
null {null}, Specifies that the control's zoom factor is always 100%
150 {number}, Specifies that the control's zoom factor is always 150%
"50,100,200,350" {string}, Indicates that the zoom-factor can be any of selected values, and the margins of zoom-factor is 50% to 350%
ZoomLevels

oTV :TV

The oTV field defines the base tree-view of control. The tree-view displays a view of the control's items and columns. The control can display multiple views. Each view can display different columns but the same set of items. For instance, the SetScrollPos(), GetScrollPos() methods can be used to set/get the scroll-position of a specific view. Use the AddTreeView() method to add a new view to the control. Use the RemoveTreeView() method removes a tree-view already created by AddTreeView() method. The TreeView() method returns a specific tree-view by its name. By default, the control provides a single tree view named tree, accessible through the oTV field, and this view cannot be removed.
Type:
Example
The following statements are equivalent:

 oPivot.oTV.SetScrollPos({x: 100}); // sets the horizontal scroll-position of the default tree-view to 100
 oPivot.ScrollPos = {x: 100}; // sets the horizontal scroll-position of the default tree-view to 100

where oPivot is an object of Pivot type
oTV

Methods

AddTreeView(name, attributesopt) → {TV}

The AddTreeView() method creates a new view to display the columns/items. Use the RemoveTreeView() method removes a tree-view already created by AddTreeView() method. The TreeView() method returns a tree-view by name. A tree-view displays the items and columns in a specific way. The control supports multiple tree-views, each with its own configuration for displaying items and columns. By default, the control includes a single tree-view named "tree", accessible directly through the oTV field. The RemoveTreeView() method cannot remove the control's default tree-view.
Parameters:
Name Type Attributes Description
name string defines the name of the tree-view to be created. It must be an unique name. The "tree" defines the control's default-tree view, and it is reserved. If missing, the "tree.split" is used instead.
attributes exontrol.W.Options <optional>
A exontrol.W.Options that defines the attributes of the window.
Properties
Name Type Description
Visible boolean The Visible field indicates whether the window is visible or hidden.
VisibleExtends string The VisibleExtends field specifies the list of windows the current window depends to be visible or hidden. A string expression that specifies the list of windows the current window's visibility depends on as explained:
  • if the VisibleExtends property includes the window itself, the window is visible if any window in VisibleExtends is visible, else
  • if the VisibleExtends property does NOT includes the window itself, the window is hidden if any window in VisibleExtends is hidden (or the window is visible if all VisibleExtends windows are visible)
AllowKeys boolean The AllowKeys field specifies whether the window can receive the keys events. By default, only the canvas window receives all the keys.
Enabled boolean The Enabled field specifies whether the window is enabled or disabled (the window is protected and shown in gray).
Resizable boolean The Resizable field indicates whether the window is resizable or fixed.
Locked boolean The Locked field specifies that the window is locked (the window is protected).
Dock exontrol.WDT The Dock field specifies how the control borders are docked to its parent control and determines how a control is resized with its parent. The exontrol.WDT type supports the following values:
  • N(0), the window is not docked (none)
  • T(1), the window's top edge is docked to the top of its containing window (top)
  • B(2), the window's bottom edge is docked to the bottom of its containing window (bottom)
  • L(3), the window's left edge is docked to the left edge of its containing window (left)
  • R(4), the window's right edge is docked to the right edge of its containing window (right)
  • F(5), all the window's edges are docked to all edges of its containing window and sized appropriately (fill)
Size number The Size field defines the width/height of the window when it is docked.
SizeExtends string The SizeExtends field specifies the list of windows that shares the same size. Once a window is resized, all its SizeExtends windows are sized the same as the current one.
Client Array.<number> The Client field specifies position of the window relative to the parent window, as an array of [x,y,width,heigh] type.
Background string The Background field defines the window's background color ( CSS Color ) or null/undefined if not provided.
Foreground string The Foreground field defines the window's foreground color ( CSS Color ) or null/undefined if not provided.
Opacity number The Opacity field indicates the window's opacity, as a number between 0 and 1 (1 is not transparent at all, 0.5 is 50% see-through, and 0 is completely transparent).
HoverBackground string The HoverBackground field, defines the window's background color while the cursor hovers it ( CSS Color ) or null/undefined if not provided.
HoverForeground string The HoverForeground field defines the window's foreground color while the cursor hovers it( CSS Color ) or null/undefined if not provided.
HoverOpacity number The HoverOpacity field indicates the window's opacity, as a number between 0 and 1 (1 is not transparent at all, 0.5 is 50% see-through, and 0 is completely transparent), when the cursor hovers it.
DrawWindowFrame boolean The DrawWindowFrame field indicates whether the window draws its frame.
Extends string The Extends field indicates a list of windows separated by comma character to extend the current's client area to. The windows(child windows) must have the z-order greater than the z-order of the current window, else they will be ignored. The Extends field changes the z-order of the windows as well.
HoverExtends string The HoverExtends field specifies the list of windows separated by comma character that receives the hover-events once the cursor hovers the current window.
AllowXChg boolean The AllowXChg field specifies whether the window can exchange its UI position with another window. Only windows with AllowXChg field set can be exchanged.
XChgID string The XChgID field specifies the general expression, whose evaluated result defines the caption to be displayed on the window's anchor-exchange part. The expression supports keywords like index, name and shortname, that indicates the window's index, a value starting from 0, the window's name and short-name. The evaluated result can include exontrol's HTML tags that will be applied on the window's anchor-exchange element. If the expression is not valid, the XChgID value is used as it is.
Control object The Control field defines the control associated with the window (for internal use only).
HScroll string The HScroll field defines window's horizontal scroll bar. A string expression that indicates the name of the window that hosts an exontrol.SB control or an object of exontrol.SB type that defines the window's horizontal scroll bar (for internal use only).
VScroll string The VScroll field defines window's vertical scroll bar. A string expression that indicates the name of the window that hosts an exontrol.SB control or an object of exontrol.SB type that defines the window's vertical scroll bar (for internal use only).
Layout string The Layout field defines the properties (separated by comma) the GetLayout/SetLayout methods of CW saves/restores (for internal use only).
Returns:
Returns the newly created view as an object of TV type. Returns null, in case there is already a window with specified name.
Type
TV
Example
oPivot.AddTreeView("2nd",{Background: "black", Foreground: "white", Dock: 3}) {TV}, creates a new tree-view named "2nd", with black background, white foreground and docked to the left side of the control.
AddTreeView

ApplyFilter()

The ApplyFilter() method (re-)applies the control's filter (if any). The onfilter event notifies your application once the control's filter has been changed. The onfilter event is triggered when the user applies a new filter or clears the existing filter. The Column.DisplayFilterButton properyy specifies whether the column shows the filter-button. The Column.Filter property filters for items based on values within this column. Column.The FilterList property specifies whether the column's drop down filter list includes visible or all items. The ChangeFilter() method changes the column's filter and filterType at once (validates the view and applies the filter once).
Example
oPivot.ApplyFilter(), (re-)applies the control's filter (if any)
ApplyFilter

BeginUpdate()

The BeginUpdate() method suspends the control's render until the EndUpdate() method is called. It maintains performance, while multiple changes occurs within the control. The BeginUpdate() method is mostly used when you want to perform multiple changes to the control without refreshing the control after each change, and once all changes are performed, you can call the EndUpdate() method to refresh the control. You can use the Update() method to perform multiple changes at once. The Smooth() method performs a smooth-transition from a layout to another. The BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control.
Example
The following statement are equivalent:

oPivot.Update(function()
{
 ...
});

or

oPivot.BeginUpdate();
...
oPivot.EndUpdate();

as the Update() method locks the control's paint during the callback, and invalidates the control once the method ends.
BeginUpdate

Cell(item, column) → {Cell}

The Cell() method returns the cell based on the item and column. The Cell property is equivelent with calling Item(item).Cell(column) method, but with no need to check whether the item and column exist, as the Cell() method returns null if either the item or column is not found, or if the cell does not exist for the giving item and column. The Cell() method supports retrieving a cell by specifying the item and column using their index, identifier/key, or object reference. The Column() method returns the column based on its index or identifier/key. The Item() method returns the item based on its index or identifier/key.
Parameters:
Name Type Description
item any The item parameter could be any of the following:
  • item {number}, indicates a numeric value that defines the index of the item to request
  • item {string}, specifies a string expression that defines the identifier/key of the item to request
  • item {Item}, specifies the object reference to the item to request for
column any The column parameter could be any of the following:
  • column {number}, indicates a numeric value that defines the index of the column to request
  • column {string}, specifies a string expression that defines the identifier/key/caption/plain-caption of the column to request
  • column {Column}, specifies the object reference to the column to request for
Returns:
Returns null or an object of Cell type
Type
Cell
Example
The following statements are equivalents:

 oPivot.Cell(0, 0), gets the cell of the first item and the first column
 oPivot.Cell("item1", "column1"), gets the cell of the item with identifier/key "item1" and the column with identifier/key/caption/plain-caption "column1"
 oPivot.Cell(oItem, oColumn), gets the cell of the item specified by the object reference oItem and the column specified by the object reference oColumn

where oPivot is an object of Pivot type, oItem is an object of Item type and oColumn is an object of Column type
Cell

ChooseFile(error) → {object}

The ChooseFile() method clears the control's data and adds an input-file element to let user choose a local file (CSV or XML format) to import data from. The OnErrorChooseFile property specifies whether the control displays an input-file to let user choose a local filte to import, as soon as an error occurs. The onerror event occurs when an error occurs during the loading of the control, such as when the data source is not accessible or when the file being imported has an unsupported format.
Parameters:
Name Type Description
error object Specifies a string (message) or an object of DOMException (or any other) type that holds defines the error to display.
Returns:
Returns an object of {i,s} type that holds:
  • i {HTMLInputElement}, specifies the "input-file" element to let user selects a local file to import into the control
  • s {HTMLSpanElement}, indicates the "span" element that displays the error
Once the control's layout is changed, the "input-file" and "span" elements are automatically removed.
Type
object
Example
oPivot.ChooseFile("message"); // displays "message" as an error to the user, and adds an "input-file" element to let user selects a local file to import into the control
ChooseFile

Clear()

The Clear() method clears the control's data (columns, items and filter). The ClearFilter() method is called within the Clear() method to remove the control's filter as well. The Columns.Clear method is used to clear all the columns and items of the control. The Items.Clear method is used to clear all the items of the control. The Import() method imports data from CSV/XML format. The Data property gets or sets the control's data.
Example
oPivot.Clear(); // clears the control's data (columns, items and filter)
Clear

ClearFilter()

The ClearFilter() method clears the control's filter (if any). The onfilter event notifies your application once the control's filter has been changed. The onfilter event is triggered when the user applies a new filter or clears the existing filter. The Column.DisplayFilterButton properyy specifies whether the column shows the filter-button. The Column.Filter property filters for items based on values within this column. Column.The FilterList property specifies whether the column's drop down filter list includes visible or all items. The ChangeFilter() method changes the column's filter and filterType at once (validates the view and applies the filter once). The ClearFilter() method is called within the Clear() method to remove the control's filter as well.
Example
oPivot.ClearFilter(), clears the control's filter (if any)
ClearFilter

CollapseAll()

The CollapseAll() method collapses all items. The ExpandAll() method expands or collapses all items based on the giving parameter (true to expand, false to collapse). The CollapseAll() method is equivalent with calling ExpandAll(false). The Item.Expanded property specifies whether the item is expanded or collapsed. The ExpandAll() method is useful when you want to expand or collapse all items at once, without the need to iterate over them one by one.
Example
oPivot.CollapseAll(), collapses all items
 oPivot.ExpandAll(false), collapses all items
CollapseAll

Column(column) → {Column}

The Column() method returns the column based on its index or identifier/key. The Column(id) method is equivalent with Columns.Item(id) method. The Cell() method returns the cell based on the item and column. The Item() method returns the item based on its index or identifier/key. The feC and feCU methods (short for forEachColumn, forEachColumnUntil) enumerates the columns of the control.
Parameters:
Name Type Description
column any The column parameter could be any of the following:
  • column{number}, indicates a numeric value that defines the index of the column to request (supports negative indices as well, where -1 returns the most recently added column, -2 returns the column added just before it, and so on @since 5.1)
  • column {string}, specifies a string expression that defines the identifier/key/caption/plain-caption of the column to request
  • column {Column}, specifies the object reference to the column to request for
Returns:
Returns null or an object of Column type
Type
Column
Example
The following statements are equivalents:

 oPivot.Column(0), gets the first column
 oPivot.Column("column1"), gets the column with identifier/key/caption/plain-caption "column1" 

where oPivot is an object of Pivot type
Column

ConditionalFormat(id) → {ConditionalFormat}

The ConditionalFormat() method gets the conditional format by index, key or reference. The ConditionalFormat(id) method is equivalent with ConditionalFormats.Item(id) method. The conditional format allows changing the appearance of cells or items based on specific conditions. The Conditional.Shape property defines the visual-appearance of the cell when the condition is met, and it accepts the same values of the Shapes property, such as backgroundColor, fontColor, fontStyle and so on.
Parameters:
Name Type Description
id any The id parameter could be any of the following:
  • id {number}, indicates a numeric value that defines the index of the conditional format to request
  • id {string}, specifies a string expression that defines the identifier/key of the conditional format to request
  • id {ConditionalFormat}, specifies the object reference to the conditional format to request for
Returns:
Returns null(the conditional format is not found), or an object of ConditionalFormat type, if the conditional formats collection contains the giving id.
Type
ConditionalFormat
Example
The following statements are equivalents:

 oPivot.ConditionalFormat(0), gets the first conditional format
 oPivot.ConditionalFormat("cf1"), gets the conditional format with identifier/key "cf1"

where oPivot is an object of Pivot type
ConditionalFormat

EndUpdate()

The EndUpdate() method resumes the control's render, after it is suspended by the BeginUpdate() method. The EndUpdate() method is mostly used after calling the BeginUpdate() method, to refresh the control after performing multiple changes to the control. You can use the Update() method to perform multiple changes at once. The Smooth() method performs a smooth-transition from a layout to another. BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control. The Refresh() method can be called to force refresh the control, to re-apply the PivotRows, PivotColumns, PivotTotals properties, as "data" option is asynchronous operation. The Update() method locks the control's paint during the callback, and invalidates the control once the method ends. The BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control. The BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control.
Example
The following statement are equivalent:

oPivot.Update(function()
{
 ...
});

or

oPivot.BeginUpdate();
...
oPivot.EndUpdate();

as the Update() method locks the control's paint during the callback, and invalidates the control once the method ends.
EndUpdate

EnsureVisibleClient(clientA, ensureOptsopt)

The EnsureVisibleClient() method ensures that the giving client fits the control's client area. The EnsureVisibleClient() method can be used to ensure that a specific column, item, or cell fits the control's client area. The EnsureVisibleClient() method performs the required scroll and zoom operations to fit the client into the control's client area. The EnsureVisibleClient() method performs a smooth transition while fitting the client into the control's client area, if the smooth option is set to a value greater than zero. The EnsureVisibleSelection() method scrolls the control's content to ensure that the control's selection fits the control's client area.
Parameters:
Name Type Attributes Description
clientA object The client parameter could be any of the following:
  • clientA {object}, indicates an object of {Column} type that indicates the column to fit into the control's client area
  • clientA {object}, indicates an object of {Item} type that indicates the item to fit into the control's client area
  • clientA {object}, indicates an object of {Cell} type that indicates the cell to fit into the control's client area
  • clientA {number}, specifies an integer that indicates the index of the item to fit into the control's client area (if negative the index is counted from the end) (@since 5.1)
  • clientA {number[]}, specifies an array of [x,y,width,height] type that indicates the absolute-coordinates of the layout-rectangle to fit into the control's client area
ensureOpts object <optional>
Specifies different options to run the current method as explained:
  • expandParents {boolean/number}, (@since 5.1) specifies whether the parent items of the giving item are expanded as explained (valid only if clientA is an Item):
    • false/{null}/{undefined}, no parent items are expanded
    • true/1 {boolean/number}, parent items are expanded
    • 2 {number}, parent items are expanded and fully visible
  • force {boolean}, forces the EnsureVisibleClient()'s smooth operation to run, not matter if no zoom/scale or scrol changed
  • allowScale {boolean}, updates the control's scale/zoom-factor to ensure full-fit the client
  • allowScroll {number}, specifies whether horizontal/vertical is allowed as explained:
    • 3 {number}/{null}/{undefined}, allows scrolling horizontal and vertical as required
    • 0 {number}, no horizontal or vertical scroll is allowed
    • 1 {number}, horizontal scroll is allowed
    • 2 {number}, vertical scroll is allowed
  • nearestFit {boolean}, ensures that corner of the object nearest the window's client area fits it (it has effect only if the size of the object is greater than size of the window's client area)
  • duration {number}, specifies the time in ms the control is smoothly performs the changes
  • thisArg {any}, specifies the value of "this" keyword during the cbkI/cbkT callbacks
  • cbkR {callback}, specifies a function of callback(p) type that's invoked once the EnsureVisibleClient()'s smooth operation runs (p {number}, specifies the progress of the smooth so far, as a value between 0 and 1)
  • cbkI {callback}, specifies a function of callback() type that's invoked once the EnsureVisibleClient()'s smooth operation begins
  • cbkT {callback}, specifies a function of callback() type that's invoked once the EnsureVisibleClient()'s smooth operation ends
Example
oPivot.EnsureVisibleClient(oPivot.Column(2)), ensures that the column at index 2 fits the control's client area
oPivot.EnsureVisibleClient(oPivot.Item(10), {expandParents: true}), expands the parent items of the item at index 10 and ensures that the item fits the control's client area (@since 5.1)
oPivot.EnsureVisibleClient(-1, {expandParents: true}), expands the parent items of the last item and ensures that the last item fits the control's client area (@since 5.1)
EnsureVisibleClient

EnsureVisibleSelection(ensureOptsopt)

The EnsureVisibleSelection() method scrolls the control's content to ensure that the control's selection fits the control's client area. The EnsureVisibleSelection() method performs the required scroll and zoom operations to fit the selection into the control's client area. The EnsureVisibleSelection() method performs a smooth transition while fitting the selection into the control's client area, if the smooth option is set to a value greater than zero. The EnsureVisibleClient() method ensures that the giving client fits the control's client area.
Parameters:
Name Type Attributes Description
ensureOpts object <optional>
Specifies different options to run the current method as explained:
  • expandParents {number}, expands the parent-items as explained:
    • 0 {number}, no parent-item is expanded (ignored, default)
    • 1 {number}, the parent-item(s) is expanded
    • 2 {number}, ensure to fit the parent-item(s) as well
  • selection {array}, holds an array of items as [exontrol.Pivot.Item] type to fit into current-view. If missing, the control's selection is used by default
  • duration {number}, specifies the time in ms the control is smoothly performs the changes. If missing, the control's smooth value is used by default
Example
oPivot.EnsureVisibleSelection(), scrolls the control's content to ensure that the control's selection fits the control's client area
oPivot.EnsureVisibleSelection({expandParents: true}), expands the parent items of the control's selection and scrolls the control's content to ensure that the control's selection fits the control's client area
oPivot.EnsureVisibleSelection({selection: [oPivot.Item(10)], expandParents: true}), expands the parent items of the item at index 10 and scrolls the control's content to ensure that the item fits the control's client area (@since 5.1)
EnsureVisibleSelection

ExpandAll(bExpand)

The ExpandAll() method expands all items. The CollapseAll() method collapses all items. The ExpandAll() method is equivalent with calling ExpandAll(true), while the CollapseAll() method is equivalent with calling ExpandAll(false). The Item.Expanded property specifies whether the item is expanded or collapsed. The ExpandAll() method is useful when you want to expand or collapse all items at once, without the need to iterate over them one by one.
Parameters:
Name Type Description
bExpand boolean Specifies whether all items are expanded or collapsed (true if missing/empty/undefined).
Example
oPivot.ExpandAll(), expands all items
 oPivot.ExpandAll(false), collapses all items
ExpandAll

Export(exportOptsopt) → {any}

The Export() method exports the control's data as an array or CSV format. The GetData() method is equivalent with Export() method. The exportOpts parameter of the Export() method allows you to specify the items and columns to export, and the type of data to export for each column. The Import() method imports data from CSV/XML format. The LoadXML() method loads an XML document (previously saved by an exontrol component). The Data property gets(exports) or sets(imports) the control's data.
Parameters:
Name Type Attributes Description
exportOpts object <optional>
Indicates the options to export control's data. The exportOpts object can include any of the following fields:
  • items {string}, specifies the items to export as one of the following values:
    • "all", exports all items, including the locked (@since 4.3), hidden or collapsed items
    • "vis", exports the visible items, excluding locked items, child items of collapsed elements or items that are not visible (e.g., items not matching the filter, or with a height of 0)
    • "sel", exports the items that are currently selected
    • "chk", exports all checked and visible items; when using this option, the first column in the columns list must indicate the index of the column used to query the checkbox state
    • "leaf", exports the leaf items of the control, excluding parent or grouped items, ensuring that only the lowest-level data entries are included in the export (@since 4.3)
    • "only", allows filtering specific item types for export (@since 4.3). The item types are listed in parentheses, separated by commas. Supported types include: locked, selected, visible, checked, sortable, selectable, divider, leaf, and expanded, as explained below.

      Syntax:

      only[byindex](type1,type2,!type3,...)

      Supported scopes:

      locked, includes items that are locked to the top or bottom of the control, meaning they remain fixed in place and are not scrollable
      selected, includes items that are currently selected
      visible, includes items that are included in the current filter (i.e., items that are not hidden due to filtering)
      checked, includes items that are checked. a column index can be specified using brackets, e.g., "checked[1]" exports items checked in column 1
      sortable, includes items that can be reordered (sortable items)
      selectable, includes items that can be selected
      divider, includes divider items, which are typically non-interactive items used for separation
      leaf, includes items that do not have child elements (leaf nodes in a tree structure)
      expanded, includes items that are currently expanded, showing their child elements

      The "byindex" flag can be specified inside square brackets ([]) to indicate that the items should be listed by their original index order rather than their current display order.

      Negating a scope (!scope)

      Prefixing a scope with ! excludes items of that type.

      Examples:

      "only(selected)", exports only selected items
      "only(!leaf,selected)", exports only selected parent items (excluding leaf items)
      "only(sortable,selectable,!divider)", exports sortable and selectable items, but not dividers
      "only(checked[1])", exports only items that are checked in column index 1
      "only(locked)", exports only items that are locked to the top or bottom (not scrollable)
      "only(visible)", exports only items that match the current filter criteria
      ""only[byindex]()", exports all items in their original dataset order rather than their current display order
  • columns {any}, specifies a list of columns to export as explained bellow (if omitted, all visible columns are exported as indicated by the "data" field of the exportOpts parameter.):
    • columns {null}, exports all visible columns of the control exactly as they are displayed (@since 4.3)
    • columns {number}, indicates a numeric value that defines the index of the column to export
    • columns {"all"} , exports all columns of the control (@since 4.3)
    • columns {string}, specifies both the columns to export and the type of the cell's data to be used (@since 4.3). The available data types include value ("v", default), plain caption ("pc", text excluding ex-HTML format), formatted caption ("c", displayed value after applying the column's format), state ("s", 0 or 1), or any other name that indicates the cell's method to call. The column list follows the format "index,index[(data)],...", where each index represents the column's index, and (data) defines how the column is exported (e.g., v for value, c for caption, pc for plain caption, or s for state). For example, "0(cap),1(cap),2,3" exports captions for the first two columns and values for the remaining columns, while "0(chk)" exports the checkbox state for the first column. If no explict data is specifed by the "columns" field the column exports data as specified by the "data" field. For instance, if the "columns" field is "0(cap),1,2,3", and "data" field is "s", the control exports the caption for the first column, and the check-box states for the columns 1, 2 and 3
    • columns {Column}, specifies the object reference to the column to export
  • rtrim {boolean}, specifies whether undefined values on the right of each row/item are excluded from the export data (specifies whether the number of fields within the lines is constant or variable)
  • format {string}, specifies the data type returned by the Export() method. The supported format is "CSV", meaning the method returns a CSV-formatted string containing the control's data. For any other value, the format defaults to "Array", where the data is exported as a two-dimensional array.
  • eor {string}, specifies the characters the row/item/line ends (has effect only if format field is "CSV")
  • eof {string}, specifies the character to separate fields within the row/item/line (has effect only if format field is "CSV")
  • hdr {boolean}, specifies whether the method exports the header of the columns (first line)
  • str {string} field specifies the character to quote values (quote character(") by default, has effect only if format field is "CSV")
  • data {string}, specifies the method used to export the cell's data as a value ("v", default), plain caption ("pc", text excluding ex-HTML format), formatted caption ("c", displayed value after applying the column's format), or state ("s", 0 or 1)
Returns:
Returns an array of [[value]] type or the control's data as as string in CSV format (only if the exportOpts.format field is "CSV")
Type
any

FindItem(caption, column, start) → {Item}

The FindItem() method searches for an item by its caption in a specified column. If start is provided, the search begins from the given item. The Item property gets the item based on its index, key/identifier or reference, and the Column property gets the column based on its index, key/identifier or reference. The Cell() method returns the cell based on the item and column. The feI and feIU methods (short for forEachItem, forEachItemUntil) enumerates the items of the control.
Parameters:
Name Type Description
caption string Specifies the caption to look for.
column any Indicates the column being searched as any of the following:
  • column {number}, indicates a numeric value that defines the index of the column to request
  • column {string}, specifies a string expression that defines the identifier/key/caption/plain-caption of the column to request
  • column {Column}, specifies the object reference to the column to request for
start any Specifies the item to start seraching from, as one of the following:
  • start {number}, indicates a numeric value that defines the index of the item to request
  • start {string}, specifies a string expression that defines the identifier/key of the item to request
  • start {Item}, specifies the object reference to the item to request for
Since:
  • 3.3
Returns:
Returns undefined if not item is being found, or the reference to the item being found as an Item object
Type
Item
Example
FindItem(10248) {Item}, returns undefined if 10248 is not found in the first column, or returns the item
FindItem('Filimon', 'Last', 10) {Item}, searches the 'Last' column for the exact caption 'Filimon' starting after the item with index 10, and returns the item or undefined if not found
FindItem('Mihai', 'First') {Item}, searches the 'First' column for the exact caption 'Mihai' starting from the first item, and returns the item or undefined if not found
FindItem

FitToClient(rtLayoutopt)

The FitToClient() method ensures that the entire (null/undefined) or giving layout fits the control's client area. The FitToClient() method performs the required scroll and zoom operations to fit the entire or giving layout into the control's client area. The FitToClient() method performs a smooth transition while fitting the entire or giving layout into the control's client area, if the smooth option is set to a value greater than zero. The FitToClient() method can be used as a default action for double-click on the control's background or as a callback for a button to reset the zoom and scroll to fit the entire layout into the control's client area. The ScrollPos property scrolls horizontally and/or vertically the control's default view. The onscroll event is fired when the user scrolls the view by mouse, touch or keyboard, or when the view's scroll is changed programmatically by ScrollPos property. The Zoom property defines the zoom factor of the control's content.
Parameters:
Name Type Attributes Description
rtLayout Array.<number> <optional>
Indicates null for entire layout or an array of [x,y,width,height] type that defines the absolute-coordinate to fit to client.
Example
oPivot.FitToClient(), ensures that the entire layout fits the control's client area by performing the required scroll and zoom operations with a smooth transition (if the smooth option is set to a value greater than zero)
 oPivot.FitToClient([0,0,1000,1000]), ensures that the layout defined by the absolute-coordinates of [0,0,1000,1000] fits the control's client area by performing the required scroll and zoom operations with a smooth transition (if the smooth option is set to a value greater than zero)  
FitToClient

GetCanvas() → {HTMLCanvasElement}

The GetCanvas() method returns the HTMLCanvasElement object where the control is currently running on. The control is always running on a canvas, which is the canvas of the control's canvas-window (exontrol.CW). The GetCanvas() method is useful when you need to access the canvas directly. You can also use the GetCanvas() method to retrieve the canvas's context and perform custom drawing operations using the Canvas API. It is recommended to call the exontrol.CC.Resize(<canvas>, [width], [height]) method to resize and refresh the control; otherwise, the control's content is lost.
Since:
  • 1.8
Returns:
Returns the HTMLCanvasElement object where the control is currently running on. For instance, the control can change the cursor shape during the control's onmousemove, and so on.
Type
HTMLCanvasElement
Example
exontrol.CC.Resize( oPivot.GetCanvas(), 800, 600 ); // resizes the control's canvas to 800x600 pixels
GetCanvas

GetLockedItem(alignment, index) → {object}

The GetLockedItem() method gets a locked item giving its index or identifier/key. The Item.Lock property specifies or retrieves the section of the control where the item is placed - either locked at the top, scrollable, or locked at the bottom (@since 4.6). The GetLockedItemsCount() method gets the number of items fixed on the top or bottom side of the control. The SetLockedItemsCount() method specifies the number of items fixed on the top or bottom side of the control.
Parameters:
Name Type Description
alignment boolean Specifies whether the method refers to top(false) or bottom(true) locked items.
index any The item parameter could be any of the following:
  • index {number}, indicates a numeric value that defines the index of the item to request
  • index {string}, specifies a string expression that defines the identifier/key of the item to request
  • index {Item}, specifies the object reference to the item to request for
Returns:
Returns null or an object of Item type
Type
object
Example
oPivot.GetLockedItem(false, 0); // gets the first locked item on the top side of the control
  oPivot.GetLockedItem(true, "itemKey"); // gets the locked item with the identifier/key "itemKey" on the bottom side of the control
GetLockedItem

GetLockedItemsCount(alignment) → {number}

The GetLockedItemsCount() method gets the number of items fixed on the top or bottom side of the control. The Item.Lock property specifies or retrieves the section of the control where the item is placed - either locked at the top, scrollable, or locked at the bottom (@since 4.6). The locked/fixed items are not affected by sorting or grouping operations. The SetLockedItemsCount() method specifies the number of items fixed on the top or bottom side of the control.
Parameters:
Name Type Description
alignment boolean Specifies whether the method refers to top(false) or bottom(true) locked items.
Returns:
Returns true if the locked/fixed items are visible
Type
number
Example
oPivot.GetLockedItemsCount(false); // gets the number of locked items on the top side of the control
GetLockedItemsCount

Home()

The Home() method zooms to 100% and scrolls the control to origin (0,0). The Home() method is used when the entire layout fits the control's client area, so no zoom is required, just scroll to origin (0,0). The Home() method can be used as a default action for double-click on the control's background or as a callback for a button to reset the zoom and scroll to default values. The ScrollPos property scrolls horizontally and/or vertically the control's default view. The onscroll event is fired when the user scrolls the view by mouse, touch or keyboard, or when the view's scroll is changed programmatically by ScrollPos property. The Zoom property defines the zoom factor of the control's content.
Example
oPivot.Home(), zooms to 100% and scrolls the control to origin (0,0)
Home

Import(source, importOptsopt)

The Import() method imports data from CSV/XML format. The LoadXML() method loads an XML document (previously saved by an exontrol component). The SetData(value) method is equivalent with Import(value) method. The Import() method can import data from various types of sources, such as a URL, a string in CSV or XML format, an array of values, or a local file dropped into the control. The Import() method also supports different options to specify how to import data into the control, such as whether to clear previously data of the control, where to insert new items, how to parse CSV string, and so on. The onload event occurs once the data is loaded. The onload event is fired even if the data is changed by user interaction (drop a file) or programmatically. The onerror event occurs if the data is not loaded successfully. The onerror event is fired even if the data is changed by user interaction (drop a file) or programmatically.
Parameters:
Name Type Attributes Description
source any The source parameter may be one of the following:
  • A String expression that specifies the URL to a CSV or XML file (contains no eof, eor or str). For example, "datasource.xml" imports the content of the 'datasource.xml' file
  • A String expression in CSV or XML format. For example, "Item 1.1,SubItem 1.2\r\nItem 1.2,SubItem 2.2" creates two columns and two rows
  • An array of [value] or [[value]] type that defines the data to load. For instance, [["Item 1.1","Item 1.2"],["Item 2.1","Item 2.2"]] creates two columns and two rows
  • (@since 3.2) An object of {columns, items} type, where:
    • 'columns' can be an array of [(string | ColumnOptions)] to specify the columns to add or of type Columns to copy the control's header from one control to another (@since 4.3). For instance {columns: "Name,Start,End"}, adds three columns, or {columns: ["Name", {caption: "Filter", displayFilterButton: true}]} adds two columns
    • 'items' is be an array of [(string | ItemOptions)] to specify the items to add or of type Items to copy the control's items from one control to another (@since 4.3).
      The ItemOptions type supports a recursive 'items' property to specify child items. For instance, {columns: "Def", items: {value: "Root", expanded: false, items:["Child 1", "Child 2", "Child 3"]}} defines a single-column control with a collapsed root item labeled 'Root' and three child items named 'Child 1', 'Child 2', and 'Child 3', or {columns: [{caption: "C1", displayFilterButton: true}, "C2"], items: [{value: ["R1.1", "R1.2"], items: [["C1.1", "C1.2"], ["C2.1", "C2.2"], ["C3.1", "C3.2"]]}, ["R2.1", "R2.2"]]} defines a dataset with two columns labeled as C1 (with a filter button for user value filtering) and C2. It includes two root items and three child items under the first root, each specifying values for their respective cells in the table
  • An object that includes the "files" member of FileList type (representing a local file dropped into the control)
importOpts object <optional>
The importOpts parameter specifies options to import data into the control as object of ImportOptions type.
Properties
Name Type Description
columnCaption string defines an expression that generates captions for new columns.
clear boolean specifies whether previously data of the control is cleared.
parent any defines the parent item to insert data to.
limit number specifies the maximum number of rows/items/lines to import.
format string determines the format of source to import data from.
eor string | RegExp specifies the delimiter, which can be a character, string, or regular expression (@since 4.4), used to identify the end of a row, item, or line during parsing (has effect only if format-field is "CSV").
eof string specifies the character to separate fields within the row/item/line (has effect only if format-field is "CSV").
str string specifies the character to quote values (has effect only if format-field is "CSV").
hdr boolean indicates whether the first line in data represents the control's header (has effect only if format-field is "CSV").
ignoreXML boolean specifies whether the file is loaded as CSV even for .xml files (files of XML type).
Example
"xml/datasource.xml" {string}, imports data from datasource.xml file
"Item 1.1,SubItem 1.2\r\nItem 1.2,SubItem 2.2" {string}, creates two columns and two rows
[["Item 1.1","Item 1.2"],["Item 2.1","Item 2.2"]] {array}, creates two columns and two rows
{columns: [{caption: "C1", displayFilterButton: true}, "C2"], items: [{value: ["R1.1", "R1.2"], items: [["C1.1", "C1.2"], ["C2.1", "C2.2"], ["C3.1", "C3.2"]]}, ["R2.1", "R2.2"]]} {object}, defines a dataset with two columns labeled as C1 (with a filter button for user value filtering) and C2. It includes two root items and three child items under the first root, each specifying values for their respective cells in the table (@since 3.2)
Import

Item(item) → {Item}

The Item() method returns the item based on its index or identifier/key. The Item(id) method is equivalent with Items.Item(id) method. The Cell() method returns the cell based on the item and column. The Column() method returns the column based on its index or identifier/key. The FindItem() method searches for an item by its caption in a specified column. The feI and feIU methods (short for forEachItem, forEachItemUntil) enumerates the items of the control.
Parameters:
Name Type Description
item any The item parameter could be any of the following:
  • item {number}, indicates a numeric value that defines the index of the item to request (supports negative indices as well, where -1 returns the most recently added item, -2 returns the item added just before it, and so on @since 5.1)
  • item {string}, specifies a string expression that defines the identifier/key of the item to request
  • item {Item}, specifies the object reference to the item to request for
Returns:
Returns null or an object of Item type
Type
Item
Example
The following statements are equivalents:

 oPivot.Item(0), gets the first item
 oPivot.Item("item1"), gets the item with identifier/key "item1"

where oPivot is an object of Pivot type
Item

LoadXML(source)

The LoadXML() method loads an XML document (previously saved by an exontrol component). The Import(source, importOpts) method can also load XML documents using the LoadXML() method if the source is an XML string (must begins with 'onload event occurs once the data is loaded. The onload event is fired even if the data is changed by user interaction (drop a file) or programmatically. The onerror event occurs if the data is not loaded successfully. The onerror event is fired even if the data is changed by user interaction (drop a file) or programmatically.
Parameters:
Name Type Description
source any The source parameter may be one of the following:
  • A String expression that specifies the URL to a XML file (contains no < or > characters)
  • A String expression in XML format
  • An object that includes the "files" member of FileList type (a local file)
  • A XMLDocument, as a result of parsing the XML source code from a string
Example
oPivot.LoadXML("xml/datasource.xml") {string}, imports data from datasource.xml file
LoadXML

Refresh()

The Refresh() method forces the control to redraw and update its layout without modifying any of its properties or data. It is typically used when the visual appearance needs to be recalculated or repainted, even though no structural or state changes were made.

For example, call Refresh() when:

  • The control's container has been resized and the layout must be recalculated.
  • External CSS or styling changes affect the control's appearance.
  • The control becomes visible after being hidden.
  • You need to ensure the UI is visually synchronized with its current internal state.

The method does not alter the control's data, options, or configuration - it only updates the rendered output.

You can use the Update() method to perform multiple changes at once. The Smooth() method performs a smooth-transition from a layout to another. The Refresh() method is not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control.

Example
oPivot.Refresh(), refreshes the control
Refresh

RemoveSelection() → {number}

The RemoveSelection() method deletes the selected-items. The RemoveSelection() method removes the selected items (including descendent items) from the control, and clears the control's selection. The RemoveSelection() method returns the number of the items being deleted. The UnselectAll() method clears the control's selection. The Items.Remove or Remove method removes the item one by one, and the RemoveSelection() method is more efficient to remove multiple items at once, because it clears the control's selection before remove items. The onremoveitem event is fired once for each item being removed, and the onremoveitem event is fired once after all items are removed.
Returns:
Returns the number of the items being deleted
Type
number

RemoveTreeView(name)

The RemoveTreeView() method removes the view already created by the AddTreeView() method. The AddTreeView() method creates a new view to display the columns/items. The TreeView() method gets the tree-view by name (which was previously created by the AddTreeView() method). The TreeView("tree") returns the control's default-tree view, equivalent of oTV member.
Parameters:
Name Type Description
name string defines the name of the tree-view to be removed. The "tree" defines the control's default-tree view, and it can not be removed.
Example
oPivot.RemoveTreeView("2nd"), removes the tree-view named "2nd" previously created by AddTreeView() method.
RemoveTreeView

Scroll(key)

The Scroll() method scrolls the window based on the giving key. The Scroll() method scrolls the view without changing the selection. The Select method selects the item and scrolls the view to make the selected item visible. The ScrollPos property scrolls horizontally and/or vertically the control's default view. The onscroll event is fired when the user scrolls the view by mouse, touch or keyboard, or when the view's scroll is changed programmatically by ScrollPos property.
Parameters:
Name Type Description
key string Specifies a key to determine the direction to scroll the view as follows:
  • "Home" {string}, scrolls to the left/top of the control
  • "End" {string}, scrolls to the right/end of the control
  • "Prior" or "PageUp"{string}, scrolls by a page left/up
  • "Next" or "PageDown" {string}, scrolls by a page right/down
  • "Up" or "ArrowUp" {string}, scrolls up
  • "Down" or "ArrowDown" {string}, scrolls down
  • "Left" or "ArrowLeft" {string}, scrolls left
  • "Right" or "ArrowRight" {string}, scrolls right
Example
The following sample code shows how to scroll the view by a page up or down using the Scroll() method:

 oPivot.on("{PageUp}", oPivot.Scroll.bind(oPivot, "PageUp"));
 oPivot.on("{PageDown}", oPivot.Scroll.bind(oPivot, "PageDown"));

where oPivot is an object of Pivot type
Scroll

Select(key)

The Select() method selects items based on the key. The Select method selects items based on the giving key, such as "Home", "PageUp", "ArrowUp", "ArrowDown", "PageDown" or "End". The Select() method selects only visible and selectable items. The Select() method is useful to select items by using shortcut keys, and it can be called once a key is pressed. The Select() method does not change the control's selection if there is no visible and selectable item based on the giving key. The SelectAll method selects all items within the control, and the UnselectAll method clears the control's selection. The RemoveSelection method deletes the selected-items. The Selection property gets or sets the control's selection. The Item.Selected property defines whether the item is selected. The onselchange event is raised when the selection is changed.
Parameters:
Name Type Description
key string Specifies a key which determines what Select method does:
  • "Home" {string}, selects the first item
  • "End" {string}, selects the last item
  • "Prior" or "PageUp"{string}, selects the item from the prior page
  • "Next" or "PageDown" {string}, selects the item from the next page
  • "Up" or "ArrowUp" {string}, selects the previously item
  • "Down" or "ArrowDown" {string}, selects the next item
The Select() method selects only visible and selectable items.
Since:
  • 1.6
Example
The following sample selects up or down item once the user presses "ArrowUp" or "ArrowDown" key:

 oPivot.on("{Up}", oPivot.Select.bind(oPivot, "Up"));
 oPivot.on("{Down}", oPivot.Select.bind(oPivot, "Down"));

where oPivot is an object of Pivot type
Select

SelectAll(toSelect)

The SelectAll(toSelect) method selects all items within the control. The Select() method selects items based on the key. The Select method selects items based on the giving key, such as "Home", "PageUp", "ArrowUp", "ArrowDown", "PageDown" or "End". The Select() method selects only visible and selectable items. The Select() method is useful to select items by using shortcut keys, and it can be called once a key is pressed. The Select() method does not change the control's selection if there is no visible and selectable item based on the giving key. The SelectAll method selects all items within the control, and the UnselectAll method clears the control's selection. The RemoveSelection method deletes the selected-items. The Selection property gets or sets the control's selection. The Item.Selected property defines whether the item is selected. The onselchange event is raised when the selection is changed.
Parameters:
Name Type Description
toSelect any Specifies the items to select within the control as one of the following values:
  • null {null}, unselects any item within the control
  • undefined or "all" {string}, selects all items within the control
  • "vis" {string}, selects just the visible-items within the control (for instance, it does not select items that does not match the filter)
  • "leaf" {string}, selects just the visible leaf-items within the control (a leaf item has no child items)
Example
oPivot.SelectAll("vis"); // selects the visible items only (for instance, it does not select items that does not match the filter)
SelectAll

SetLockedItemsCount(alignment, value) → {object}

The SetLockedItemsCount() method specifies the number of items fixed on the top or bottom side of the control. The Item.Lock property specifies or retrieves the section of the control where the item is placed - either locked at the top, scrollable, or locked at the bottom (@since 4.6). The locked/fixed items are not affected by sorting or grouping operations. The method adds or removes the locked items based on the specified value. If the value is less than the current number of locked items, then the method removes the extra locked items starting from the last locked item. If the value is greater than the current number of locked items, then the method adds new locked items at the end of the locked items collection. The SetLockedItemsCount() method returns the last locked-item as an object of Item type.
Parameters:
Name Type Description
alignment boolean Specifies whether the method refers to top(false) or bottom(true) locked items.
value number Specifies the number of items fixed on the top or bottom side of the control.
Returns:
Returns the last locked-item as an object of Item type
Type
object
Example
oPivot.SetLockedItemsCount(false, 2); // specifies that there are 2 locked items on the top side of the control
  oPivot.SetLockedItemsCount(true, 0);   // specifies that there is no locked item on the bottom side of the control
SetLockedItemsCount

Smooth(callback, thisArg, oSmoothOptsopt, thisArg)

The Smooth() method performs a smooth-transition from a layout to another. The smooth-transition goes from the current layout to the new layout generated by the callback. The BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control.
Parameters:
Name Type Attributes Description
callback callback Indicates a callback function that generates the new layout for the control ( such as removing or adding new items to the control). The callback is provided with no arguments.
thisArg any Specifies the value of this keyword for callback functions. If missing, the TV object reference is used instead.
oSmoothOpts object <optional>
Indicates an object of {cbkR,cbkI,cbkT} type that defines callback to invoke when Smooth operation begins, progress and ends as explained below:
  • cbkR {callback}, specifies a function of callback(oSmooth) type that's invoked while Smooth progressively runs
  • cbkI {callback}, specifies a function of callback(oSmooth) type that's invoked once the Smooth operation begins
  • cbkT {callback}, specifies a function of callback(oSmooth) type that's invoked once the Smooth operation ends
The oSmooth's parameter of cbkI, cbkR or cbkT callbacks is undefined while no animated-smooth, else it includes the following:
  • oW {exontrol.W}, indicates the current window as an object of exontrol.W
  • oZ {exontrol.WS}, holds the current visible-windows as an object of exontrol.WS([exontrol.W => [x,y,width,height]]) type (before apply the callback)
  • oNewZ {exontrol.WS}, holds the new visible-windows as an object of exontrol.WS([exontrol.W => [x,y,width,height]]) type (after callback has been applied)
  • rgWFT {object}, holds a collection of changes within windows as an object of exontrol.M1([exontrol.W => {from: [x,y,width,height], to: [x,y,width,height]}]) type
  • oWRend {exontrol.W}, indicates the window being rendered during the "Smooth" animation. For instance, if no UI window has been affected, invalidates the current window only, else renders the entire-canvas
  • progress {number}, specifies the state of the "Smooth" animation as a value between 0 and 1 (used by oSmooth.oNewZ.cbkget to define the ratio of window's UI rectange from/to)
Additionally, the oSmooth parameter includes the following:
  • mV2FT {map}, specifies a map of [view => {"items":{from,to,stkFT},"cvo-lock":{from,to,stkFT},...}] type that holds the from/to visible-objects for each part of each view
  • cbkHI {callback}, defines the rectangle a hidden-object should go to (a collapsed item should go to center of its visible-parent)
thisArg any defines the value of "this" keyword during cbkI, cbkR or cbkT callbacks.
Example
oPivot.Smooth(function()
 {
  // performs multiple changes to the control, such as removing or adding new items to the control
 })
Smooth

Soom(zoomTo, oPointAbsopt)

The Soom() method zooms or/and scrolls the control's content. The Soom() method is used when the entire layout does not fit the control's client area, so zoom and/or scroll is required. The Soom() method can be used as a default action for double-click on the control's background or as a callback for a button to reset the zoom and scroll to default values. The ScrollPos property scrolls horizontally and/or vertically the control's default view. The onscroll event is fired when the user scrolls the view by mouse, touch or keyboard, or when the view's scroll is changed programmatically by ScrollPos property. The Zoom property defines the zoom factor of the control's content.
Parameters:
Name Type Attributes Description
zoomTo number Indicates a numeric value that defines the target-zoom factor as a value between 10 and 1000 (no zoom if null or undefined).
oPointAbs object <optional>
Specifies an object of {x,y} or array as [x,y] type that specifies the absolute-coordinates of the point to scroll into the client.
Example
oPivot.Soom(100, [0,0]), zooms to 100% and brings the origin (0,0) at its original position (Home)
Soom

TreeView(name) → {TV}

The TreeView() method gets the tree-view by name (which was previously created by the AddTreeView() method). The RemoveTreeView() method removes a tree-view already created by AddTreeView() method. The TreeView("tree") returns the control's default-tree view, equivalent of oTV member.
Parameters:
Name Type Description
name string Defines the name of the tree-view to request ("tree" defines the control's default-tree view).
Since:
  • 1.1
Returns:
Returns null or the an object of TV type associated with the name
Type
TV
Example
oPivot.TreeView("tree") {TV}, gets the control's default-tree view, equivalent of oTV member.
oPivot.TreeView("2nd") {TV}, gets the tree-view named "2nd" previously created by AddTreeView() method.
TreeView

UnselectAll()

The UnselectAll() method clears the control's selection. The SelectAll method selects all items within the control, and the UnselectAll method clears the control's selection. The RemoveSelection method deletes the selected-items. The Selection property gets or sets the control's selection. The Item.Selected property defines whether the item is selected. The onselchange event is raised when the selection is changed.
Example
oPivot.UnselectAll(); // clears the control's selection
UnselectAll

Update(callback, thisArgopt)

The Update() method locks the control's paint during the callback, and invalidates the control once the method ends. The BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control. The BeginUpdate/EndUpdate() methods are not required to be called when you use the Update() or Smooth() methods, because the methods already maintain performance while performing multiple changes to the control. The BeginUpdate()/EndUpdate() methods can be used to maintain performance while calling the Update() method, especially if multiple changes are being made to the control. The Refresh() method can be called to force refresh the control, to re-apply the PivotRows, PivotColumns, PivotTotals properties, as "data" option is asynchronous operation.
Parameters:
Name Type Attributes Description
callback callback Indicates a callback to perform changes within the control.
thisArg any <optional>
Specifies the value of "this" keyword during the callback. If missing/empty/undefined the thisArg points to the control itself, as an object of Pivot type.
Example
The following statement are equivalent:

oPivot.Update(function()
{
 ...
});

or

oPivot.BeginUpdate();
...
oPivot.EndUpdate();

as the Update() method locks the control's paint during the callback, and invalidates the control once the method ends.
Update

feC(callback, thisArgopt)

The feC() method (short for forEachColumn) invokes the callback for each column of the control (enumerates the columns, as they were added). The Column() method returns the column based on its index or identifier/key. The feCU() method (short for forEachColumnUntil) invokes the callback for each column of the control, until the callback returns a truthy value (enumerates the columns, as they were added).
Parameters:
Name Type Attributes Description
callback callback A function of callback(oColumn) type that's called for every column, where oColumn is:
  • oColumn {Column}, specifies a column of Column type
thisArg any <optional>
Indicates the value of "this" keyword during the callback. If missing/empty/undefined the thisArg points to the control itself, as an object of Pivot type.
Since:
  • 3.3
Example
The following sample enumerates all columns of the control:

oPivot.feC(function(oColumn)
{
  console.log(exontrol.ToString.Quote(oColumn));
})
feC

feCU(callback, thisArgopt) → {any}

The feCU() method (short for forEachColumnUntil) invokes the callback for each column of the control, until the callback returns a truthy value (enumerates the columns, as they were added). The feC() method (short for forEachColumn) invokes the callback for each column of the control (enumerates the columns, as they were added). The Column() method returns the column based on its index or identifier/key.
Parameters:
Name Type Attributes Description
callback callback A function of callback(oItem) {any} type that's called for every item, where oItem is
  • oItem {Item}, specifies an item of Item type
thisArg any <optional>
Indicates the value of "this" keyword during the callback. If missing/empty/undefined the thisArg points to the control itself, as an object of Pivot type.
Since:
  • 3.3 The following sample searches for the first column with AllowSizing property set to false: console.log(oPivot.feCU(function(oColumn) { return !oColumn.AllowSizing && oColumn; }));
Returns:
Returns the last-value of the callback
Type
any

feI(callback, thisArgopt)

The feI() method (short for forEachItem) invokes the callback for each item of the control (unscrolled(top,bottom items) and scrolled items as well) (enumerates the items, as they were added). The Item() method returns the item based on its index or identifier/key. The FindItem() method searches for an item by its caption in a specified column. The feIU() method (short for forEachItemUntil) invokes the callback for each item of the control (unscrolled(top,bottom items) and scrolled items as well), until the callback returns a truthy value (enumerates the items, as they were added).
Parameters:
Name Type Attributes Description
callback callback A function of callback(oItem) type that's called for every item, where oItem is:
  • oItem {Item}, specifies an item of Item type
thisArg any <optional>
Indicates the value of "this" keyword during the callback. If missing/empty/undefined the thisArg points to the control itself, as an object of Pivot type.
Example
The following sample enumerates all items of the control:

oPivot.feI(function(oItem, index)
{
 console.log(exontrol.ToString.Quote(oItem));
})
feI

feIU(callback, thisArgopt) → {any}

The feIU() method (short for forEachItemUntil) invokes the callback for each item of the control (unscrolled(top,bottom items) and scrolled items as well), until the callback returns a truthy value (enumerates the items, as they were added). The feI() method (short for forEachItem) invokes the callback for each item of the control (unscrolled(top,bottom items) and scrolled items as well) (enumerates the items, as they were added). The Item() method returns the item based on its index or identifier/key. The FindItem() method searches for an item by its caption in a specified column.
Parameters:
Name Type Attributes Description
callback callback A function of callback(oItem) {any} type that's called for every item, where oItem is
  • oItem {Item}, specifies an item of Item type
thisArg any <optional>
Indicates the value of "this" keyword during the callback. If missing/empty/undefined the thisArg points to the control itself, as an object of Pivot type.
Returns:
Returns the last-value of the callback
Type
any
Example
The following sample searches for the item with "10248" caption in the first column and displays it:

console.log(
  oPivot.feIU(function(oItem, index)
  {
    return oItem.Cell(0) == "10248" && oItem
  })
);
feIU

off(event, listener, methodopt)

The off() method removes a previously bound handler from a specified event, allowing you to stop listening for that event and prevent the associated actions from being executed. Also removes keyboard shortcuts previously defined using the on() method. The event name is case-insensitive and may or may not include the 'on' prefix. For example, 'click' is equivalent to 'onclick' and vice versa. If the event parameter is missing/empty/undefined, all event handlers are removed from the control. If the listener parameter is missing/empty/undefined, all handlers of the specified event are removed. If the method parameter is missing/empty/undefined, the listener[type]() function is used to compare and remove the handler(s).
Parameters:
Name Type Attributes Description
event string Indicates the event to unbind, which can either be:
  • event {string}, the name of the event to unbind. The event name is case-insensitive and may or may not include the 'on' prefix. For example, 'click' is equivalent to 'onclick' and vice versa.
  • event {string}, a string that encloses a shortcut in {}, such as "{Ctrl + A}", to unbind the keyboard shortcut
listener object | callback Defines the listener to remove, which can either be:
  • listener {callback}, a JavaScript callback function that was previously bound to the event (the method parameter has no effect)
  • listener {object}, an object that implements a notification method (e.g., listener[method](oEvent) or listener[type](oEvent)) that was previously used to handle the event
method string <optional>
Defines an optional case-sensitive string specifying the method on the listener to remove. If not provided, the listener[type]() function is used. This parameter is ignored when the listener is a JavaScript callback function.
Since:
  • 4.4
Example
The following example removes the click event handler from the control:

 oPivot.off("click");

where oPivot is an object of Pivot type.

This sample is equivalent to:

 oPivot.Listeners.Remove("onclick");

The following example removes all event handlers from the control:

 oPivot.off();

where oPivot is an object of Pivot type.

This sample is equivalent to:

 oPivot.Listeners.Clear();

or

 oPivot.Listeners.Remove();
off

on(event, listener, methodopt) → {object}

The on() method adds an event listener to the specified event or defines a keyboard shortcut. The on() method enables you to listen for events and execute custom code when those events occur, or to define keyboard shortcuts that trigger specific actions within the component. You can use the on() method to enhance the interactivity and functionality of your application by responding to user actions or keyboard inputs. Use the off() method to remove previously bound event handlers or keyboard shortcuts.
Parameters:
Name Type Attributes Description
event string Specifies the event to listen for or a keyboard shortcut, in one of the following forms:
  • If the value is in the "{shortcut}" form (for example, "{Ctrl + A}"), it defines a keyboard shortcut. The callback is triggered when that key combination is pressed. To provide keyboard support for the component, the <canvas> element that hosts it needs to be focusable. To achieve this, you must include the tabIndex attribute in the canvas HTML tag (for example, <canvas tabIndex="0"></canvas>).

    See Shortcuts for more information. (for example, on("{Ctrl + A}", callback)). The shortcut-feature for on/off methods is supported from version 5.0.

  • Otherwise, the value is treated as a standard event name (for example, "click"), and the callback is invoked when that event occurs on the component. The event name is case-insensitive and may or may not include the 'on' prefix. For example, 'click' is equivalent to 'onclick' and vice versa.

    See Listeners for more information. (for example, on("click", callback)).

listener object | callback Defines the listener to add, which can either be:
  • listener {callback}, a JavaScript callback function to handle the event directly (the method parameter has not effect)
  • listener {object}, an object that implements a notification method (e.g., listener[method](oEvent) or listener[type](oEvent)) to handle the event when it occurs
method string <optional>
Defines an optional case-sensitive string specifying the method on the listener to handle the event. If not provided, the listener[type]() function is used. This parameter is ignored when the listener is a JavaScript callback function.
Since:
  • 4.4
Returns:
Returns the listeners of the specified type, as an exontrol.Arr({callback, thisArg, lock, name, equal}) type, which includes the following new members:
  • type {string}, specifies a case-sensitive string that specifies the type of event to listen for
  • do(event) {callback}, indicates a function that can be invoked to trigger the specified event for all listeners registered for that event type
where:
  • callback {callback}, defines the listener's callback function
  • thisArg {any}, defines the value of this during the listener's callback execution
  • lock {number}, locks or unlocks the invocation of the listener's callback
  • name {string}, defines the name of the callback, mostly used for debugging purposes
  • equal(oCompareListenerCallback) {callback}, indicates a function of callback(oCompareListenerCallback) {boolean} type compares the current object with the provided object. It returns true if the objects contain the same data
Type
object
Example
The following example logs event details when the control is clicked:

oPivot.on("click", function(oEvent)
{
  console.log(oEvent);
});

where oPivot is an object of Pivot type.

This sample is quivalent of 

oPivot.Listeners.Add("onclick", function (oEvent)
{
  console.log(oEvent);
});
on

Events

onaddcolumn

The onaddcolumn() method occurs once a new column has been added to the control. The Columns.Add method adds a new column to the control, and once the column is added, the onaddcolumn() method is called. You can use the onaddcolumn() method to be notified once a new column has been added to the control, and for instance, display the new column in your application.
Type:
  • object
Parameters:
Name Type Description
oEvent Column Indicates an object of Column type being added.
Example
The following samples display the column being added:

oPivot.onaddcolumn = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onaddcolumn", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("addcolumn", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onaddcolumn

onaddgroupitem

The onaddgroupitem() method notifies the control once a group-item is added. The GroupItem/GetGroupItem() method indicates a group-item if zero or positive (specifies the index of the column that has been grouped by). The AllowGroupBy property specifies whether the user can group by dragging a column's header into the control's sortbar. When the user groups by dragging a column's header into the control's sortbar, the onaddgroupitem event is triggered for each new group-item created as a result of grouping. For instance, if the user groups by a column that has three unique values, three group-items are created and added to the control's items collection, and consequently, the onaddgroupitem event is triggered three times, once for each new group-item added.
Type:
  • object
Parameters:
Name Type Description
oEvent Item Indicates the new group-item being created and added, as an object of Item type.
Example
The following samples display the group-item being added:

oPivot.onaddgroupitem = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onaddgroupitem", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("addgroupitem", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onaddgroupitem

onadditem

The onadditem() method notifies your application that a new item has been added to the control. The Items.Add method adds a new item to the control, and once the item is added, the onadditem() method is called. You can use the onadditem() method to be notified once a new item has been added to the control, and for instance, display the new item in your application. The Item.Add method adds a new child item to a specific item, and once the child-item is added, the onadditem() method is called. You can use the onadditem() method to be notified once a new child-item has been added to a specific item, and for instance, display the new child-item in your application.
Type:
  • object
Parameters:
Name Type Description
oEvent Item Indicates an object of Item type being added.
Example
The following samples display the item being added:

oPivot.onadditem = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onadditem", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("additem", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onadditem

ondolayout

The ondolayout event notifies your application when the pivot layout is generated. This occurs after the control recalculates and formats its content in response to changes in the pivotRows, pivotColumns, or pivotTotals properties. At this point, all aggregated data, headers, and cell arrangements are finalized, making it safe to perform actions such as reading the rendered data, applying custom formatting, or triggering dependent logic.
Example
The following samples display a message once the pivot's layout (columns, rows or totals) has been changed:

oPivot.ondolayout = function )
{
 console.log("the layout has been changed");
}

or

oPivot.Listeners.Add("ondolayout", function ()
{
 console.log("the layout has been changed");
})

or

oPivot.on("dolayout", function ()
{
 console.log("the layout has been changed");
})

where oPivot is an object of Pivot type
ondolayout

onerror

The onerror() method occurs once the control encountered an error. The event may occur when Import method or Data property import data that is not well-formed, or when the control encounters an error while loading a file (e.g., due to CORS policy or invalid format). The onload event occurs once the control loads or imports data. The OnErrorChooseFile property specifies whether the control displays an input-file to let user choose a local filte to import, as soon as an error occurs.
Type:
  • object
Parameters:
Name Type Description
oEvent object Specifies an object of DOMException (or any other) type that holds information about the error.
Example
The following samples display the error once it occurs:

oPivot.onerror = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onerror", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("error", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onerror

onfilter

The onfilter event notifies your application once the control's filter has been changed. The onfilter event is triggered when the user applies a new filter or clears the existing filter. The Column.Filter property specifies the filter applied on the column. The control's filter is applied by setting a value to the control's filter-bar (if enabled) or by calling the ApplyFilter() method. When the user applies a new filter or clears the existing filter, the onfilter event is triggered as a result of filtering. The Column.DisplayFilterButton property specifies whether the filter button is displayed within the column's header. The FilterBarVisible property specifies whether the control's filter-bar is visible to let the user apply a filter by setting a value to the filter-bar. The ApplyFilter() method applies a filter to the control. The ClearFilter() method clears the control's filter.
Type:
  • object
Example
The following samples display a message once a filter is applied or cleared:

oPivot.onfilter = function ()
{
 console.log("onfilter");
}

or

oPivot.Listeners.Add("onfilter", function ()
{
 console.log("onfilter");
})

or

oPivot.on("filter", function ()
{
 console.log("onfilter");
})

where oPivot is an object of Pivot type
onfilter

onload

The onload() method occurs once the control loads or imports data. The Import method or Data property may trigger the onload event once the control imports data, or when the control loads data from a file. The onload event is also triggered when the control is initialized with data (for instance, when the control is initialized with a non-empty Data property). The onload event is not triggered when the control's data is cleared (for instance, by calling the Clear() method). The onerror event may occur when Import method or Data property import data that is not well-formed, or when the control encounters an error while loading a file (e.g., due to CORS policy or invalid format). The onload event occurs once the control loads or imports data. The OnErrorChooseFile property specifies whether the control displays an input-file to let user choose a local filte to import, as soon as an error occurs.
Type:
  • object
Example
The following samples display a message once the control loads or imports new data (for instance, the user drags and drops a file into the control):

oPivot.onload = function ()
{
 alert("onload");
}

or

oPivot.Listeners.Add("onload", function ()
{
 alert("onload");
})

or

oPivot.on("load", function ()
{
 alert("onload");
})

where oPivot is an object of Pivot type
onload

onremovecolumn

The onremovecolumn() method notifies your application that a column has been removed from the control. The Columns.Remove method removes a column from the control, and once the column is removed, the onremovecolumn() method is called. You can use the onremovecolumn() method to be notified once a column has been removed from the control, and for instance, remove the column from your application.
Type:
  • object
Parameters:
Name Type Description
oEvent Column Indicates an object of Column type being removed.
Example
The following samples display the column being removed:

oPivot.onremovecolumn = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onremovecolumn", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("removecolumn", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onremovecolumn

onremoveitem

The onremoveitem() method occurs once an item has been removed from the Items collection. The Items.Remove method removes an item from the control. The Item.Remove method removes the item itself. The RemoveSelection method removes all selected items from the control, and once the items are removed. You can use the onremoveitem() method to be notified once an item has been removed from the control, and for instance, remove the item from your application.
Type:
  • object
Parameters:
Name Type Description
oEvent Item Indicates an object of Item type being removed.
Example
The following samples display the item being removed:

oPivot.onremoveitem = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onremoveitem", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("removeitem", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onremoveitem

onselchange

The onselchange() method notifies that the control's selection has been changed (items). The onselchange event is fired once the control's selection has been changed, and the event handler receives the control's selection as a parameter. The oEvent parameter of onselchange event handler holds the control's selection. The Selection property defines the control's selection, and the onselchange event is fired once the Selection property is changed. The onselchange event is fired even if the selection is changed by user interaction or programmatically. The Selected property defines whether the item is selected.
Type:
  • object
Parameters:
Name Type Description
oEvent object holds the control's selection, as explained:
  • oEvent {null}, indicates that the control has no selected items
  • oEvent {Item}, indicates an object of Item type that defines the control's single-item selected (SingleSel property is true)
  • oEvent {array}, specifies an array of [Item] type that holds all selected items within the control (SingleSel property is false)
Example
The following samples display the control's selection once it changes:

oPivot.onselchange = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onselchange", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("selchange", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onselchange

onsort

The onsort event notifies your application once a column gets sorted or grouped by. The Sorts property specifies the sort order of the columns. When the user clicks a column's header to sort by that column, the onsort event is triggered as a result of sorting. The onsort event notifies the control once the sort order has been changed for one or more columns, for instance, when a new column has been added to the sorter (Column.SortOrder method), a column has been removed from the sorter (Remove() method), a column changes its position within the sorter, or a column changes its sort-order. The AllowGroupBy property specifies whether the user can group by dragging a column's header into the control's sortbar. When the user groups by dragging a column's header into the control's sortbar, the onsort event is triggered as a result of grouping. The AllowSort property specifies whether the column is sortable.
Type:
  • object
Parameters:
Name Type Description
oEvent number defines the sort-operation it occured as a combination of one or more flags:
  • 1 {number}, indicates sort operation
  • 2 {number}, indicates a group-by operation
Example
The following samples display the sort-operation once the user sorts or group-by a column:

oPivot.onsort = function (oEvent)
{
 console.log(oEvent);
}

or

oPivot.Listeners.Add("onsort", function (oEvent)
{
 console.log(oEvent);
})

or

oPivot.on("sort", function (oEvent)
{
 console.log(oEvent);
})

where oPivot is an object of Pivot type
onsort

onviewchange

The onviewchange event notifies your application once control's view is changed, such as when data is updated, summarized, sorted, or filtered.

Once the onviewchange event occurs the following properties of CustomView are updated:

  • Data property, {array} retrieves the data to be represented (the pivot-table) as a 2-dimensional array
  • Columns property, {string} retrieves the names of the columns, represented as a comma-separated list
  • Categories property, {number} retrieves the number of leading columns in Data that represent the categories
  • Series property, {number} defines the number of trailing columns in Data that represent the series
  • Stack property, {string} retrieves the name of the stack for each exported column (columns generated from the same pivot-column are grouped together in a stack), represented as a comma-separated list.
  • Items property, {number} retrieves the number of rows in Data
Since:
  • 4.3
Example
The following samples display a message once the pivot's view has been changed:

oPivot.onviewchange = function )
{
 console.log("the view has been changed");
}

or

oPivot.Listeners.Add("onviewchange", function ()
{
 console.log("the view has been changed");
})

or

oPivot.on("viewchange", function ()
{
 console.log("the view has been changed");
})

where oPivot is an object of Pivot type
onviewchange