StiAppsRecordsCache Class
Namespace: Stimulsoft.Base.AppsDatabase
Constructors
| Constructor | Description |
|---|---|
| StiAppsRecordsCache(IStiAppDatabaseConnector dataSource, string cloudTableKey) |
StiAppsRecordsCache(dataSource: IStiAppDatabaseConnector, cloudTableKey: string)
Parameters
- dataSource (IStiAppDatabaseConnector)
- cloudTableKey (string)
Properties
| Property | Type | Description |
|---|---|---|
| ColumnDetails | StiAppDatabaseColumnSizes.TableDetails | |
| Cursor | StiAppsRecord | |
| IsInit | bool | |
| Position | int | |
| TotalCount | long |
Methods
| Method | Returns | Description |
|---|---|---|
| AddEmptyRowToTheEnd | void | |
| AddPageToQuery (+1 overloads) | void | |
| DeleteColumn | void | |
| DeleteRows | void | |
| FetchColumnsAsync | Task | |
| FullClear | void | |
| GetLoadingPage | int? | |
| GetRecordByGridRowNumber | StiAppsRecord | |
| GetRecordByIndex | StiAppsRecord | |
| InsertColumnToTheLeft | void | |
| InsertColumnToTheRight | void | |
| InsertNewDefaultValueInRows | void | |
| InsertRow | void | |
| MoveRecordDown | void | |
| MoveRecordUp | void | |
| RemoveValueByColumnIndex | void | |
| Save | void | |
| SetNewCursor | void | |
| SetSort (+1 overloads) | void | |
| UpdateColumn | void | |
| UpdateValue | void |
Method Details
AddEmptyRowToTheEnd
AddEmptyRowToTheEnd(record: StiAppsRecord): void
Parameters
- record (StiAppsRecord)
AddPageToQuery
AddPageToQuery(pageIndexes: List
Parameters
- pageIndexes (List
)
AddPageToQuery(pageIndex: int): void
Parameters
- pageIndex (int)
DeleteColumn
DeleteColumn(columnName: string): void
Parameters
- columnName (string)
DeleteRows
DeleteRows(rows: List
Parameters
- rows (List
)
FetchColumnsAsync
FetchColumnsAsync(font: Font): Task
Parameters
- font (Font)
Returns Task
FullClear
FullClear(): void
GetLoadingPage
GetLoadingPage(): int?
Returns int?
GetRecordByGridRowNumber
GetRecordByGridRowNumber(rowNumber: int): StiAppsRecord
Parameters
- rowNumber (int)
Returns StiAppsRecord
GetRecordByIndex
GetRecordByIndex(index: int): StiAppsRecord
Parameters
- index (int)
Returns StiAppsRecord
InsertColumnToTheLeft
InsertColumnToTheLeft(column: StiAppsColumn, columnIndex: int): void
Parameters
- column (StiAppsColumn)
- columnIndex (int)
InsertColumnToTheRight
InsertColumnToTheRight(column: StiAppsColumn, columnIndex: int): void
Parameters
- column (StiAppsColumn)
- columnIndex (int)
InsertNewDefaultValueInRows
InsertNewDefaultValueInRows(column: StiAppsColumnEx): void
Parameters
- column (StiAppsColumnEx)
InsertRow
InsertRow(record: StiAppsRecord, rowIndex: int): void
Parameters
- record (StiAppsRecord)
- rowIndex (int)
MoveRecordDown
MoveRecordDown(rowIndex: int): void
Parameters
- rowIndex (int)
MoveRecordUp
MoveRecordUp(rowIndex: int): void
Parameters
- rowIndex (int)
RemoveValueByColumnIndex
RemoveValueByColumnIndex(columnIndex: int): void
Parameters
- columnIndex (int)
Save
Save(): void
SetNewCursor
SetNewCursor(rowNumber: int): void
Parameters
- rowNumber (int)
SetSort
SetSort(sortRoles: List<StiAppsColumnSortRule>): void
Parameters
- sortRoles (List<StiAppsColumnSortRule>)
SetSort(sortColumn: string, sortAscending: bool): void
Parameters
- sortColumn (string)
- sortAscending (bool)
UpdateColumn
UpdateColumn(columnName: string, column: StiAppsColumn): void
Parameters
- columnName (string)
- column (StiAppsColumn)
UpdateValue
UpdateValue(record: StiAppsRecord, columnIndex: int, newValue: object): void
Parameters
- record (StiAppsRecord)
- columnIndex (int)
- newValue (object)
Events
| Event | Type | Description |
|---|---|---|
| ColumnCreated | Action<StiAppsColumnEx> | |
| ColumnDeleted | Action |
|
| CursorChange | Action | |
| GetCurrentPage | StiGetCurrentPageAppsEventHandler | |
| HideLabelFetchingData | EventHandler | |
| InitColumns | Action<List<StiAppsColumnEx» | |
| InvalidateData | EventHandler | |
| ShowLabelFetchingData | EventHandler | |
| SortChanged | Action | |
| TotalChanged | EventHandler |
Fields
| Field | Type | Description |
|---|---|---|
| SignalRConnectionId | string | |
| SortRoles | List<StiAppsColumnSortRule> |