Record context
RecordContext
Here is an example that demonstrates the use of a RecordContext
component.
RecordContext Class
Parameters
Name | Type | Default | Description |
---|---|---|---|
ChildContent | RenderFragment? | ||
ForceSuccessfulValidationBeforeSave | bool | True | Should a successful validation of the record be performed before allowing the record to be saved. |
IsDirty | bool | False | |
ParentContext | MainContext? | ||
QueryParameterName | string? | The name of the query parameter which specifies the id of the record to retrieve. | |
Record | TableRecord? | The record linked to this record context. | |
RecordId | string? | The specific GUID of the record for the context. | |
TableName | string? | The table logical name of the record. | |
ValidationSummaryIsVisible | bool | False | Display the validation summary. |
Methods
Name | Parameters | Type | Description |
---|---|---|---|
GetRequests | List<RequestBase> | ||
RefreshAsync | bool forceRefresh | Task | |
ResetState | void | ||
SaveAsync | bool? refresh | Task<bool> | Save the context and any child contexts (grid, record, etc). |
Validate | bool | Validate the record and any sub-contexts (grid, lookup edit, record, main). |