Properties |
||||||||
source | Object | null | ||||||
Gets or sets pivot source adapter used to supply data to the pivot grid. Code example:
|
||||||||
localization | Object | null | ||||||
Gets or sets the localization object used to localize the text elements of the pivot grid. Code example:
|
||||||||
scrollBarsEnabled | Boolean | true | ||||||
Gets or sets whether the scrollbars of the pivot grid are enabled or disabled. Code example:
|
||||||||
selectionEnabled | Boolean | true | ||||||
Gets or sets whether selection in the pivot grid is enabled or disabled. Code example:
|
||||||||
multipleSelectionEnabled | Boolean | true | ||||||
Gets or sets whether the multiple selection in the pivot grid is enabled or disabled. Code example:
|
||||||||
treeStyleRows | Boolean | true | ||||||
Gets or sets the rows of the pivot grid are displayed as a tree structure or using classic OLAP style. Code example:
|
||||||||
autoResize | Boolean | false | ||||||
Gets or sets if the size of pivot grid adjusts automatically to display the entire content. Code example:
|
||||||||
Events |
||||||||
pivotitemexpanding | Event | |||||||
This event is triggered when a pivot item is expanding. You may use the event's cancel flag to stop further processing. |
||||||||
pivotitemexpanded | Event | |||||||
This event is triggered after a pivot item is expanded. |
||||||||
pivotitemcollapsing | Event | |||||||
This event is triggered when a pivot item is collapsing. You may use the event's cancel flag to stop further processing. |
||||||||
pivotitemcollapsed | Event | |||||||
This event is triggered after a pivot item is collapsed. |
||||||||
sortchanging | Event | |||||||
This event is triggered the sorting is about to change. You may use the event's cancel flag to stop further processing. |
||||||||
sortchanged | Event | |||||||
This event is triggered after the sorting order has changed. |
||||||||
sortremoving | Event | |||||||
This event is triggered the sorting is about to be removed. You may use the event's cancel flag to stop further processing. |
||||||||
sortremoved | Event | |||||||
This event is triggered after the sorting has been sortremoved. |
||||||||
pivotitemselectionchanged | Event | |||||||
This event is triggered after the selection of a pivot item has changed. |
||||||||
pivotcellmousedown | Event | |||||||
This event is triggered on mousedown over a pivot grid cell. You may use the event's cancel flag to stop further processing. |
||||||||
pivotcellmouseup | Event | |||||||
This event is triggered on mouseup over a pivot grid cell. You may use the event's cancel flag to stop further processing. |
||||||||
pivotcellclick | Event | |||||||
This event is triggered on click over a pivot grid cell. You may use the event's cancel flag to stop further processing. |
||||||||
pivotcelldblclick | Event | |||||||
This event is triggered on double click over a pivot grid cell. You may use the event's cancel flag to stop further processing. |
||||||||
pivotitemmousedown | Event | |||||||
This event is triggered on mousedown over a pivot grid item. You may use the event's cancel flag to stop further processing. |
||||||||
pivotitemmouseup | Event | |||||||
This event is triggered on mouseup over a pivot grid item. You may use the event's cancel flag to stop further processing. |
||||||||
pivotitemclick | Event | |||||||
This event is triggered on click over a pivot grid item. You may use the event's cancel flag to stop further processing. |
||||||||
pivotitemdblclick | Event | |||||||
This event is triggered on double click over a pivot grid item. You may use the event's cancel flag to stop further processing. |
||||||||
Methods |
||||||||
getInstance | Method | |||||||
Returns the instance of the pivot grid component
Return Value Object |
||||||||
refresh | Method | |||||||
Refreshes the content of the pivot grid component
Return Value None |
||||||||
destroy | Method | |||||||
Destroys the pivot grid component instance
Return Value None |
||||||||
getPivotRows | Method | |||||||
Return the pivot rows of the pivot grid
Return Value Object |
||||||||
getPivotColumns | Method | |||||||
Return the pivot columns of the pivot grid
Return Value Object |
||||||||
getPivotCells | Method | |||||||
Return the pivot cells of the pivot grid
Return Value Object |
Properties |
||||||||
type | undefined | pivotGrid | ||||||
Gets or sets the type of the pivot designer - pivotGrid or pivotChart. |
||||||||
target | Object | |||||||
Gets or sets the instance of the widget component controlled by the pivot designer component. |
||||||||
Events |
||||||||
Methods |
||||||||
refresh | Method | |||||||
Return Value None |
||||||||
destroy | Method | |||||||
Return Value None |
Properties |
||
pivotRow | Object | |
The row of the pivot cell. |
||
pivotColumn | Object | |
The column of the pivot cell. |
Properties |
||
prefix | String | |
Optional text that appears at the start of the formatted string |
||
sufix | String | |
Optional text that appears at the end of the formatted string |
||
decimalSeparator | String | . |
Separator for the decimal point in the cell's value |
||
thousandsSeparator | String | , |
Separator for the thousands in the cell's value |
||
decimalPlaces | Number | 2 |
Number of decimal places for the cell's value |
||
negativeWithBrackets | Boolean | false |
Determines if negative numbers will be displayed in brackets or with a negative sign. |
Properties |
|||||||||||||||||
Methods |
|||||||||||||||||
hitTest | Method | ||||||||||||||||
Returns the pivot cell at the corresponding position if exists
Return Value Object |
|||||||||||||||||
clear | Method | ||||||||||||||||
Clears all pivot cells
Return Value None |
|||||||||||||||||
setCellValue | Method | ||||||||||||||||
Sets the value of a pivot cell
Return Value None |
|||||||||||||||||
getCellValue | Method | ||||||||||||||||
Gets the value of a pivot cell
Return Value Object |
|||||||||||||||||
drillThroughCell | Method | ||||||||||||||||
Drills through a pivot cells and returns the respective source data records
Return Value Array |
|||||||||||||||||
selectCell | Method | ||||||||||||||||
Selects a pivot cell
Return Value None |
|||||||||||||||||
unselectCell | Method | ||||||||||||||||
Unselects a pivot cell
Return Value None |
|||||||||||||||||
clearSelection | Method | ||||||||||||||||
Clears the selection of all selected pivot cells
Return Value None |
|||||||||||||||||
isCellSelected | Method | ||||||||||||||||
Checks if a pivot cell is selected
Return Value Boolean |
|||||||||||||||||
getSelectedCellsCount | Method | ||||||||||||||||
Returns the number of selected cells
Return Value Number |
|||||||||||||||||
getSelectedCells | Method | ||||||||||||||||
Returns an array of all selected cells
Return Value Array |
|||||||||||||||||
getNextCell | Method | ||||||||||||||||
Returns the cell left, right, above or below a specific pivot cell
Return Value Object |
Properties |
||||||||||||||
resizable | Boolean | true | ||||||||||||
Gets or sets if the collection of pivot items is resizable. |
||||||||||||||
sortable | Boolean | true | ||||||||||||
Gets or sets if the collection of pivot items is sortable. |
||||||||||||||
showExpandCollapseButtons | Boolean | true | ||||||||||||
Gets or sets if expand/collapse buttons are visible. |
||||||||||||||
parentPivotGrid | Object | null | ||||||||||||
Returns a reference to the parent pivot grid instance. |
||||||||||||||
items | Array | [] | ||||||||||||
Returns an array of all child pivot items. |
||||||||||||||
valueItems | Array | [] | ||||||||||||
Returns an array of all child pivot value items. |
||||||||||||||
isHidden | Boolean | false | ||||||||||||
Returns true if the pivot items collection is hidden. |
||||||||||||||
Methods |
||||||||||||||
show | Method | |||||||||||||
Makes the pivot items collection visible
Return Value None |
||||||||||||||
hide | Method | |||||||||||||
Hides the pivot items collection
Return Value None |
||||||||||||||
refresh | Method | |||||||||||||
Refreshes the content of the pivot items collection
Return Value None |
||||||||||||||
getHierarchyDepth | Method | |||||||||||||
Returns the depth of the collection
Return Value Number |
||||||||||||||
autoResize | Method | |||||||||||||
Auto resizes the pivot items collection
Return Value None |
||||||||||||||
getSortItem | Method | |||||||||||||
Returns the sort item of the collection
Return Value Object |
||||||||||||||
getSortOrder | Method | |||||||||||||
Returns the sort order of the collection
Return Value Object |
||||||||||||||
sortBy | Method | |||||||||||||
Sorts the items collection
Return Value None |
||||||||||||||
removeSort | Method | |||||||||||||
Removes the sort order of the collection
Return Value None |
||||||||||||||
selectItem | Method | |||||||||||||
Selects a pivot item
Return Value None |
||||||||||||||
unselectItem | Method | |||||||||||||
Clears the selection of a pivot item
Return Value None |
||||||||||||||
clearSelection | Method | |||||||||||||
Clears the selection of all items in the collection
Return Value None |
||||||||||||||
getSelectedItems | Method | |||||||||||||
Returns all selected items in an array
Return Value Array |
Properties |
||
dataField | String | |
The dataField in the data source used for this pivot field. |
||
text | String | |
The text which will appear in the pivot designer when using this field. |
||
align | String | |
Text alignment when the value of this field is displayed on the pivot rows or pivot columns. |
||
className | String | |
Name of style to use when displaying this field on the pivot rows or columns. |
||
classNameSelected | String | |
Name of style to use when displaying this field on the pivot rows or columns and column or row is selected. |
Properties |
||
dataField | String | |
The dataField in the data source used for this pivot filter field. |
||
text | String | |
The text which will appear in the pivot designer when using this field. |
||
filterFunction | function | |
Implementation of the filtering function used to skip/filter records from the data source. The function should return true if the record should be filtered, otherwise false. |
Properties |
|||||||||||
isExpanded | Boolean | false | |||||||||
Returns true if the pivot item is expanded. |
|||||||||||
isHidden | Boolean | false | |||||||||
Returns true if the pivot item is hidden. |
|||||||||||
isSelected | Boolean | false | |||||||||
Returns true if the pivot item is hidden. |
|||||||||||
parentItem | Object | null | |||||||||
Returns a reference to the parent item. |
|||||||||||
hierarchy | Object | null | |||||||||
Returns a reference to the parent rows or columns hierarchy. |
|||||||||||
parentPivotGrid | Object | null | |||||||||
Returns a reference to the parent pivot grid instance. |
|||||||||||
items | Array | [] | |||||||||
Returns an array of all child pivot items. |
|||||||||||
valueItems | Array | [] | |||||||||
Returns an array of all child pivot value items. |
|||||||||||
Methods |
|||||||||||
getWidth | Method | ||||||||||
Gets the width of the pivot item
Return Value Number |
|||||||||||
getDisplayWidth | Method | ||||||||||
Gets the displayed width of the pivot item
Return Value Number |
|||||||||||
autoResize | Method | ||||||||||
Auto resizes the pivot item
Return Value None |
|||||||||||
getHeight | Method | ||||||||||
Gets the height of the pivot item
Return Value Number |
|||||||||||
getDisplayHeight | Method | ||||||||||
Gets the displayed height of the pivot item
Return Value Number |
|||||||||||
setHeight | Method | ||||||||||
Sets the height of the pivot item
Return Value None |
|||||||||||
expand | Method | ||||||||||
Expands the pivot item so all sub-items will be visible
Return Value None |
|||||||||||
collapse | Method | ||||||||||
Collapses the pivot item so all sub-items will be invisible
Return Value None |
Properties |
||||||||||||||
resizable | Boolean | true | ||||||||||||
Gets or sets if the collection of pivot items is resizable. |
||||||||||||||
sortable | Boolean | true | ||||||||||||
Gets or sets if the collection of pivot items is sortable. |
||||||||||||||
showExpandCollapseButtons | Boolean | true | ||||||||||||
Gets or sets if expand/collapse buttons are visible. |
||||||||||||||
parentPivotGrid | Object | null | ||||||||||||
Returns a reference to the parent pivot grid instance. |
||||||||||||||
items | Array | [] | ||||||||||||
Returns an array of all child pivot items. |
||||||||||||||
valueItems | Array | [] | ||||||||||||
Returns an array of all child pivot value items. |
||||||||||||||
isHidden | Boolean | false | ||||||||||||
Returns true if the pivot items collection is hidden. |
||||||||||||||
Methods |
||||||||||||||
show | Method | |||||||||||||
Makes the pivot items collection visible
Return Value None |
||||||||||||||
hide | Method | |||||||||||||
Hides the pivot items collection
Return Value None |
||||||||||||||
refresh | Method | |||||||||||||
Refreshes the content of the pivot items collection
Return Value None |
||||||||||||||
getHierarchyDepth | Method | |||||||||||||
Returns the depth of the collection
Return Value None |
||||||||||||||
autoResize | Method | |||||||||||||
Auto resizes the pivot items collection
Return Value None |
||||||||||||||
getSortItem | Method | |||||||||||||
Returns the sort item of the collection
Return Value Object |
||||||||||||||
getSortOrder | Method | |||||||||||||
Returns the sort order of the collection
Return Value Object |
||||||||||||||
sortBy | Method | |||||||||||||
Sorts the items collection
Return Value None |
||||||||||||||
removeSort | Method | |||||||||||||
Removes the sort order of the collection
Return Value None |
||||||||||||||
selectItem | Method | |||||||||||||
Selects a pivot item
Return Value None |
||||||||||||||
unselectItem | Method | |||||||||||||
Clears the selection of a pivot item
Return Value None |
||||||||||||||
clearSelection | Method | |||||||||||||
Clears the selection of all items in the collection
Return Value None |
||||||||||||||
getSelectedItems | Method | |||||||||||||
Returns all selected items in an array
Return Value Array |
Properties |
||
pivotValuesOnRows | Boolean | false |
Determines whether the pivot values will be displayed on rows or columns. |
||
rows | Boolean | [] |
A list of data fields which will be used to build the pivot rows. |
||
columns | Boolean | [] |
A list of data fields which will be used to build the pivot columns. |
||
values | Boolean | [] |
A list of data fields which will be used to build the pivot values. |
||
filters | Boolean | [] |
A list of filters to apply on the source records while building the pivot table. |
Properties |
||
dataField | String | |
The dataField in the data source used for this pivot field. |
||
function | String|function | |
The data aggregation function to use when calculating the cells values. You can either use the name of one of the built in functions like 'sum', 'count', 'min', 'max', 'product', 'average' or provide the implementation of your own function. |
||
text | String | |
The text which will appear in the pivot designer when using this field. |
||
align | String | |
Text alignment when the value of this field is displayed on the pivot rows or pivot columns. |
||
className | String | |
Name of style to use when displaying this field on the pivot rows or columns. |
||
classNameSelected | String | |
Name of style to use when displaying this field on the pivot rows or columns and column or row is selected. |
||
cellsClassName | String | |
Name of style to use when displaying the cells of this pivot value field. |
||
cellsClassNameSelected | String | |
Name of style to use when displaying this cells this pivot value field when the cells are selected. |
||
formatSettings | Object | {} |
|
Properties |
||
x | Number | |
X coordinate |
||
y | Number | |
Y coordinate |