Skip to content

RevoGrid Documentation v4.29.1 / JSX / RevoGrid

Interface: RevoGrid ​

Revogrid - High-performance, customizable grid library for managing large datasets.

Events guide ​

For a comprehensive events guide, check the Events API Page. All events propagate to the root level of the grid. Dependency tree.

Type definitions ​

Read type definition file for the full interface information. All complex property types such as ColumnRegular, ColumnProp, ColumnDataSchemaModel can be found there.

HTMLRevoGridElement ​

Examples ​

ts
data-rgCol-rgRow - main data slot. Applies extra elements in <revogr-data />.
ts
focus-rgCol-rgRow - focus layer for main data. Applies extra elements in <revogr-focus />.

Properties ​

PropertyTypeDescriptionDefined in
accessible?booleanEnable accessibility. If disabled, the grid will not be accessible. Default truesrc/components.d.ts:1395
additionalData?AdditionalDataAdditional data to be passed to plugins, renders or editors. For example if you need to pass Vue component instance. Default {}src/components.d.ts:1400
applyOnClose?booleanApply changes in editor when closed except 'Escape' cases. If custom editor in use method getValue required. Check interfaces.d.ts EditorBase for more info. Default falsesrc/components.d.ts:1405
autoSizeColumn?boolean | AutoSizeColumnConfigAutosize config. Enables columns autoSize. For more details check autoSizeColumn plugin. By default disabled, hence operation is not performance efficient. true to enable with default params (double header separator click for autosize). Or define config. See AutoSizeColumnConfig for more details. Default falsesrc/components.d.ts:1410
canDrag?booleanDisable native drag&drop plugin. Default truesrc/components.d.ts:1415
canFocus?booleanWhen true cell focus appear. Default truesrc/components.d.ts:1420
canMoveColumns?booleanEnable column move plugin. Default falsesrc/components.d.ts:1425
colSize?numberIndicates default column size. Default 100src/components.d.ts:1430
columnTypes?{}Column Types Format. Every type represent multiple column properties. Types will be merged but can be replaced with column properties. Types were made as separate objects to be reusable per multiple columns. Default {}src/components.d.ts:1435
columns?(ColumnRegular<ColumnProp, DataType<any, ColumnProp>> | ColumnGrouping<any>)[]Columns - defines an array of grid columns. Can be column or grouped column. Default []src/components.d.ts:1440
disableVirtualX?booleanDisable lazy rendering mode for the X axis. Use when not many columns present and you don't need rerenader cells during scroll. Can be used for initial rendering performance improvement. Default falsesrc/components.d.ts:1445
disableVirtualY?booleanDisable lazy rendering mode for the Y axis. Use when not many rows present and you don't need rerenader cells during scroll. Can be used for initial rendering performance improvement. Default falsesrc/components.d.ts:1450
editors?EditorsCustom editors register. Default {}src/components.d.ts:1455
exporting?booleanEnable export plugin. Default falsesrc/components.d.ts:1460
filter?boolean | ColumnFilterConfigEnables filter plugin. Disabled by default; set to true or a configuration object to enable. Can be boolean. Or can be filter collection See FilterCollection for more info. Default falsesrc/components.d.ts:1465
focusTemplate?FocusTemplateFuncApply changes typed in editor on editor close except Escape cases. If custom editor in use method getValue required. Check interfaces.d.ts EditorBase for more info.src/components.d.ts:1469
frameSize?numberDefines how many rows/columns should be rendered outside visible area. Default 1src/components.d.ts:1474
grouping?GroupingOptionsGroup rows based on this property. Define properties to be groped by grouping plugin See GroupingOptions.src/components.d.ts:1478
hideAttribution?booleanPlease only hide the attribution if you are subscribed to Pro version Default falsesrc/components.d.ts:1483
jobsBeforeRender?Promise<any>[]Prevent rendering until job is done. Can be used for initial rendering performance improvement. When several plugins require initial rendering this will prevent double initial rendering. Default []src/components.d.ts:1488
noHorizontalScrollTransfer?booleanPrevents horizontal scroll state from being mirrored across viewport sections. Default falsesrc/components.d.ts:1493
onAdditionaldatachanged?(event: RevoGridCustomEvent<any>) => voidEmmited after the additional data is changedsrc/components.d.ts:1497
onAfteranysource?(event: RevoGridCustomEvent<{ source: DataType[]; type: DimensionRows; }>) => voidEmitted after each source update, whether from the pinned or main viewport. Useful for tracking all changes originating from sources in both the pinned and main viewports.src/components.d.ts:1501
onAftercolumnresize?(event: RevoGridCustomEvent<{}>) => voidEmitted after column resizing. Useful for retrieving the resized columns.src/components.d.ts:1508
onAftercolumnsset?(event: RevoGridCustomEvent<{ columns: ColumnCollection; order: SortingOrder; }>) => voidColumn updatedsrc/components.d.ts:1514
onAfteredit?(event: RevoGridCustomEvent<AfterEditEvent>) => voidAfter data applied or range changed.src/components.d.ts:1521
onAfterfilterapply?(event: RevoGridCustomEvent<AfterFilterApplyEventProps<DataType>>) => voidEmitted after the filter trim has been applied. collection contains the first condition for each column; filterItems contains the complete model, and multiFilterItems is an alias for filterItems.src/components.d.ts:1525
onAfterfocus?(event: RevoGridCustomEvent<FocusAfterRenderEvent<DataType<any, ColumnProp>>>) => voidAfter focus render finished. Can be used to access a focus element through event.target. This is just a duplicate of afterfocus from revogr-focus.tsx.src/components.d.ts:1529
onAftergridinit?(event: RevoGridCustomEvent<any>) => voidEmmited after the grid is initialized. Connected to the DOM.src/components.d.ts:1533
onAftergridrender?(event: RevoGridCustomEvent<any>) => voidEmmited after the grid is rendered.src/components.d.ts:1537
onAftersortingapply?(event: RevoGridCustomEvent<AfterSortingApplyEvent>) => voidBy SortingPlugin
Triggered after sorting has been applied and completed.
Provides final sorting state and sorting column metadata when available.
src/components.d.ts:1541
onAftersourceset?(event: RevoGridCustomEvent<{ source: DataType[]; type: DimensionRows; }>) => voidAfter main source/rows updatedsrc/components.d.ts:1545
onAfterthemechanged?(event: RevoGridCustomEvent<string>) => voidEmmited after the theme is changedsrc/components.d.ts:1552
onAftertrimmed?(event: RevoGridCustomEvent<any>) => voidEmitted after trimmed values have been applied. Useful for notifying when trimming of values has taken place.src/components.d.ts:1556
onBeforeanysource?(event: RevoGridCustomEvent<{ source: DataType[]; type: DimensionRows; }>) => voidBefore data apply on any source type. Can be source from pinned and main viewport. You can override data source heresrc/components.d.ts:1560
onBeforeautofill?(event: RevoGridCustomEvent<ChangedRange>) => voidBefore autofill is applied. To prevent the default behavior of applying the edit data, you can call e.preventDefault().src/components.d.ts:1567
onBeforecellfocus?(event: RevoGridCustomEvent<BeforeSaveDataDetails<DataType, ColumnRegular<ColumnProp, DataType<any, ColumnProp>>>>) => voidBefore the cell focus is changed. To prevent the default behavior of changing the cell focus, you can call e.preventDefault().src/components.d.ts:1571
onBeforecolumnapplied?(event: RevoGridCustomEvent<ColumnCollection>) => voidEmitted before a column update is applied, after the column set is gathered and the viewport is updated. Useful for performing actions or modifications before the final application of the column update.src/components.d.ts:1575
onBeforecolumnsgather?(event: RevoGridCustomEvent<{ columns: (ColumnRegular<ColumnProp, DataType<any, ColumnProp>> | ColumnGrouping<any>)[]; }>) => voidEmitted before user column definitions are gathered into the internal column collection. Listeners can replace detail.columns to rewrite the raw column set before RevoGrid normalizes it.src/components.d.ts:1579
onBeforecolumnsset?(event: RevoGridCustomEvent<ColumnCollection>) => voidEmitted before a column update is applied. Listeners can use this event to perform any necessary actions or modifications before the column update is finalized.src/components.d.ts:1585
onBeforeedit?(event: RevoGridCustomEvent<BeforeSaveDataDetails<DataType, ColumnRegular<ColumnProp, DataType<any, ColumnProp>>>>) => voidBefore the data is edited. To prevent the default behavior of editing data and use your own implementation, call e.preventDefault(). To override the edit result with your own value, set the e.val property to your desired value.src/components.d.ts:1589
onBeforeeditstart?(event: RevoGridCustomEvent<BeforeSaveDataDetails<DataType, ColumnRegular<ColumnProp, DataType<any, ColumnProp>>>>) => voidEmitted before editing starts. Use e.preventDefault() to prevent the default edit behavior.src/components.d.ts:1593
onBeforeexport?(event: RevoGridCustomEvent<DataInput>) => voidBefore export Use e.preventDefault() to prevent export Replace data in Event in case you want to modify it in exportsrc/components.d.ts:1597
onBeforefilterapply?(event: RevoGridCustomEvent<BeforeFilterApplyEventProps<DataType, ColumnRegular<ColumnProp, DataType<any, ColumnProp>>>>) => voidEmitted before applying a filter to the data source. Use event.preventDefault() to handle filtering outside Core. collection contains the first condition for each column; filterItems contains the complete multi-condition model.src/components.d.ts:1601
onBeforefiltertrimmed?(event: RevoGridCustomEvent<BeforeFilterTrimmedEventProps<DataType>>) => voidEmitted before applying filter trim indexes. Use event.preventDefault() to cancel. collection contains the first condition for each column; filterItems contains the complete model.src/components.d.ts:1605
onBeforefocuslost?(event: RevoGridCustomEvent<null | FocusedData>) => voidBefore the grid focus is lost. To prevent the default behavior of changing the cell focus, you can call e.preventDefault().src/components.d.ts:1609
onBeforegridrender?(event: RevoGridCustomEvent<any>) => voidEmmited before the grid is rendered.src/components.d.ts:1613
onBeforerange?(event: RevoGridCustomEvent<ChangedRange>) => voidBefore autofill is applied. Runs before beforeautofill event. Use e.preventDefault() to prevent range.src/components.d.ts:1617
onBeforerangeedit?(event: RevoGridCustomEvent<BeforeRangeSaveDataDetails>) => voidBefore applying range data, specifically when a range selection occurs. To customize the data and prevent the default edit data from being set, you can call e.preventDefault().src/components.d.ts:1621
onBeforerowdefinition?(event: RevoGridCustomEvent<{ oldVals: any; vals: any; }>) => voidEmitted before the row definition is applied. Useful for modifying or preventing the default row definition behavior.src/components.d.ts:1625
onBeforesorting?(event: RevoGridCustomEvent<{ additive: boolean; column: ColumnRegular<ColumnProp, DataType<any, ColumnProp>>; order: "asc" | "desc"; }>) => voidBy SortingPlugin
Triggered immediately after header click.
First in sorting event sequence. Ff this event stops no other event called.
Use e.preventDefault() to prevent sorting.
src/components.d.ts:1629
onBeforesortingapply?(event: RevoGridCustomEvent<{ additive: boolean; column: ColumnRegular<ColumnProp, DataType<any, ColumnProp>>; order: "asc" | "desc"; }>) => voidBy SortingPlugin
After beforesorting
Triggered after column data updated with new sorting order.
Use e.preventDefault() to prevent sorting data change.
src/components.d.ts:1637
onBeforesourceset?(event: RevoGridCustomEvent<{ source: DataType[]; type: DimensionRows; }>) => voidBefore main source/rows data apply. You can override data source heresrc/components.d.ts:1645
onBeforesourcesortingapply?(event: RevoGridCustomEvent<{ sorting: SortingOrder; type: DimensionRows; }>) => voidBy SortingPlugin
Same as beforesorting but triggered after beforeanysource (when source is changed).
Use e.preventDefault() to prevent sorting data change.
src/components.d.ts:1652
onBeforetrimmed?(event: RevoGridCustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>) => voidEmitted before trimming values. Use e.preventDefault() to prevent the default behavior of trimming values. Modify the trimmed property if you want to filter the indexes for trimming.src/components.d.ts:1659
onContentsizechanged?(event: RevoGridCustomEvent<MultiDimensionType>) => voidNew content size has been applied. The size excludes the header. Currently, the event responsible for applying the new content size does not provide the actual size. To retrieve the actual content size, you can utilize the getContentSize function after the event has been triggered.src/components.d.ts:1667
onCreated?(event: RevoGridCustomEvent<any>) => voidEmmited after grid createdsrc/components.d.ts:1671
onFilterconfigchanged?(event: RevoGridCustomEvent<any>) => voidEmitted when the filter configuration is changedsrc/components.d.ts:1675
onHeaderclick?(event: RevoGridCustomEvent<ColumnRegular<ColumnProp, DataType<any, ColumnProp>>>) => voidOn header click.src/components.d.ts:1679
onRowdragstart?(event: RevoGridCustomEvent<RowDragStartDetails>) => voidThis event is triggered when the row order change is started. To prevent the default behavior of changing the row order, you can call e.preventDefault(). To change the item name at the start of the row order change, you can set e.text to the desired new name.src/components.d.ts:1683
onRowheaderschanged?(event: RevoGridCustomEvent<any>) => voidEmmited when the row headers are changed.src/components.d.ts:1687
onRoworderchanged?(event: RevoGridCustomEvent<{ from: number; to: number; }>) => voidBefore the order of rgRow is applied. To prevent the default behavior of changing the order of rgRow, you can call e.preventDefault().src/components.d.ts:1691
onSortingconfigchanged?(event: RevoGridCustomEvent<SortingConfig>) => voidEmitted when the sorting configuration is changed SortingPlugin subsribed to this eventsrc/components.d.ts:1695
onViewportscroll?(event: RevoGridCustomEvent<ViewPortScrollEvent>) => voidEmitted when the viewport is scrolled. Useful for tracking viewport scrolling events.src/components.d.ts:1699
pinnedBottomSource?DataType[]Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source. Default []src/components.d.ts:1704
pinnedTopSource?DataType[]Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source. Default []src/components.d.ts:1709
plugins?typeof BasePlugin[]Custom grid plugins. Can be added or removed at runtime. Every plugin should be inherited from BasePlugin class. For more details check Plugin guide Default []src/components.d.ts:1714
range?booleanWhen true, user can select a cell range. Required for range-based clipboard fill. Default falsesrc/components.d.ts:1719
readonly?booleanWhen true, grid in read only mode. Default falsesrc/components.d.ts:1724
registerVNode?(VNode | (c: ExtraNodeFuncConfig) => VNode)[]Register new virtual node inside of grid. Used for additional items creation such as plugin elements. Should be set before grid render inside of plugins. Can return VNode result of h() function or a function that returns VNode. Function can be used for performance improvement and additional renders. Default []src/components.d.ts:1729
resize?booleanWhen true, columns are resizable. Default falsesrc/components.d.ts:1737
resizeRow?boolean | RowResizeConfigEnables row resizing. Pass a configuration object to customize the height limits or enable resize edges across the full row. Default falsesrc/components.d.ts:1742
rowClass?stringRow class property mapping. Map custom classes to rows from row object data. Define this property in rgRow object and this will be mapped as rgRow class. Default ''src/components.d.ts:1747
rowDefinitions?RowDefinition[]Custom row properies to be applied. See RowDefinition for more info. Default []src/components.d.ts:1752
rowHeaders?boolean | RowHeadersExcel like functionality. Show row numbers. Also can be used for custom row header render if object provided.src/components.d.ts:1756
rowSize?numberIndicates default rgRow size. By default 0, means theme package size will be applied Alternatively you can use rowSize to reset viewport Default 0src/components.d.ts:1761
rtl?booleanEnable right-to-left (RTL) mode. When enabled, columns will be displayed from right to left. Default falsesrc/components.d.ts:1766
sorting?SortingConfigAlternative way to set sorting. {columns: [{prop: 'name', order: 'asc'}]} Use SortingPlugin to get current sorting statesrc/components.d.ts:1770
source?DataType[]Source - defines main data source. Can be an Object or 2 dimensional array([][]); Keys/indexes referenced from columns Prop. Default []src/components.d.ts:1775
stretch?string | booleanStretch strategy for columns by StretchColumn plugin. For example if there are more space on the right last column size would be increased. Default falsesrc/components.d.ts:1780
theme?stringTheme name. Default 'default'src/components.d.ts:1785
themeDefinitions?ThemeDefinition[]Per-grid custom theme definitions. Assign as a JavaScript property; complex values cannot be serialized as HTML attributes. Default []src/components.d.ts:1790
trimmedRows?Record<number, boolean>Trimmed rows. Functionality which allows to hide rows from main data set. trimmedRows are physical rgRow indexes to hide. Default {}src/components.d.ts:1795
useClipboard?boolean | ClipboardConfigWhen true enable clipboard. Can be boolean or clipboard config. Default truesrc/components.d.ts:1800
virtualX?DimensionCols[]Column dimensions that use X axis virtual rendering. Defaults to regular columns only to preserve pinned column behavior. Set to ['rgCol', 'colPinStart', 'colPinEnd'] to virtualize all column areas. Default ['rgCol']src/components.d.ts:1805