Skip to main content

grid-pro.gridprogenesisdatasource

Home > @genesislcap/grid-pro > GridProGenesisDatasource

GridProGenesisDatasource class

The Genesis Datasource element, for CSRM-compatible data fetching and used exclusively by the GridPro element.

Signature:

export declare class GridProGenesisDatasource extends GridProGenesisDatasource_base 

Extends: GridProGenesisDatasource_base

Remarks

Only supports Client-Side Row Model.

Properties

Property

Modifiers

Type

Description

applyAsyncFuncName

string

applyFuncName

string

keepColDefsOnClearRowData

boolean

Methods

Method

Modifiers

Description

applyTransaction(agTransaction)

applyTransactionAsync(agTransaction, callback)

connectedCallback()

criteriaChanged(oldCriteria, newCriteria)

deepClone()

deinit()

Deinitialises the datasource, resetting it to its initial state.

destroy()

Destroys the datasource, resetting it to its initial state.

disconnectedCallback()

handleStreamDeletes(deletes)

Handles stream deletes by removing records from the grid.

handleStreamInserts(inserts)

handleStreamUpdates(updates)

init(columnDefinitions, columnStates)

Initializes the datasource.

loadMore()

refreshRows()

Force the grid to redispatch the current rows

reloadResourceData()

Resets the grid data while keeping columnDefs and sends a DATA_LOGOFF message if it's a stream. Loads resource data without full initialization (no metadata fetch).

removeFilter(fieldName)

requestChanged(oldRequest, newRequest)

reset()

Resets the datasource to its initial state.

resourceNameChanged(oldValue, newValue)

restart()

Restarts the datasource, uses destroy and init in sequence.

setFilter(fieldName, newFilter)