Power Grid

(part of package 'Servoy NG-Grids') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

Power Grid is an editable table component providing advanced functionality such as row grouping, pivoting, summaries and powerful analytics. It's data is loaded from a JSDataSet, and the changed data (if it is edited) can be exported back as a dataset.

This is a reference page; many components have detailed usage guides here.

Properties

arrowsUpDownMoveWhenEditing

Defines action on TEXTFIELD editor for up/down arrow keys

Type: String


checkboxSelection

When true the row has a checkbox for selecting/unselecting

Type: Boolean Default Value: false


columns

List all columns to be used in table as dataprovider

Type: Array<CustomType<aggrid-datasettable.column>>


columnsAutoSizing

Auto sizing for columns. SIZE_COLUMNS_TO_FIT: make the currently visible columns fit the screen. AUTO_SIZE: the grid will work out the best width to fit the contents of the 'visible' cells in the column. NONE: no auto sizing action performed

Type: String Default Value: null


columnsAutoSizingOn

Apply 'columnsAutoSizing' for these events even if 'continuousColumnsAutoSizing' is false

Type: CustomType<aggrid-datasettable.columnsAutoSizingOn>


continuousColumnsAutoSizing

Apply 'columnsAutoSizing' whenever columns width are changed

Type: Boolean Default Value: false


editNextCellOnEnter

Type: Boolean Default Value: false


enableColumnResize

Type: Boolean Default Value: true


enableSorting

Enable column sorting by clicking on the column's header

Type: Boolean Default Value: true


enabled

Type: Enabled Default Value: true


gridOptions

Map where additional grid properties of ag-grid can be set

Type: Json


groupMaxWidth

Type: Number


groupMinWidth

Type: Number Default Value: 200


groupRowRendererFunc

Function to customize group row rendering when gridOptions.groupDisplayType is set to 'groupRows'

Type: Clientfunction


groupStyleClass

Type: Styleclass


groupWidth

Type: Number Default Value: 200


headerHeight

Type: Number Default Value: 33


iconConfig

Type: CustomType<aggrid-datasettable.iconConfig>


isEditableFunc

Callback that returns the editable state of a cell.

Type: Clientfunction


localeText

Map where locales of ag-grid can be set

Type: Map


Type: CustomType<aggrid-datasettable.mainMenuItemsConfig>


multiSelect

Type: Boolean Default Value: false


onDragGetImageFunc

Called when row(s) drag-n-drop is started, to get the drag image as an html code.

Type: Clientfunction


onDragOverFunc

Callback when dragging over a row - returns one of the strings: 'copy', 'move', 'none' depending on the allowed drag operation.

Type: Clientfunction


pivotMode

Pivoting allows you to take a columns values and turn them into columns

Type: Boolean Default Value: false


readOnly

Type: Boolean Default Value: false


responsiveHeight

Table's height to be set in a responsive form. When responsiveHeight is set to 0, the table will use 100% height of the parent container. When responsiveHeight is set to -1, the table will auto-size it's height to the number of rows displayed inside the grid - in this case there is no vertical scrollbar and all rows are rendered

Type: Number Default Value: 300


rowHeight

The height in pixels of the table's rows

Type: Number Default Value: 25


rowStyleClassFunc

Function to add style class to row

Type: Clientfunction


showColumnsMenuTab

Type: Boolean Default Value: false


styleClass

Type: Styleclass Default Value: "ag-theme-alpine"


tabSeq

Type: Tabseq


toolPanelConfig

Type: CustomType<aggrid-datasettable.toolPanelConfig>


useLazyLoading

Type: Boolean Default Value: false


visible

Type: Visible


Events

onCellClick(rowData,columnId,cellData,event,dataTarget)

Called when the mouse is clicked on a row/cell

Parameters:


onCellDoubleClick(rowData,columnId,cellData,event,dataTarget)

Called when the mouse is double clicked on a row/cell

Parameters: