Class ListingPage<TClientProperties>
Listing page for info objects.
public abstract class ListingPage<TClientProperties> : ListingPageBase<InfoObjectListingConfiguration, TClientProperties>, IPage where TClientProperties : ListingTemplateClientProperties, new()
Type Parameters
TClientProperties
- Inheritance
-
objectPage<TClientProperties>ListingPageBase<InfoObjectListingConfiguration, TClientProperties>ListingPage<TClientProperties>
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Automatically adds IdColumn into the table column list (the id column is not visible in the table).
Properties
IdColumn
Name of the column which is as an identifier of the listed objects.
protected virtual string IdColumn { get; }
Property Value
- string
ObjectType
Type of the info objects that are listed. Corresponds to the OBJECT_TYPE property of the info object or PredefinedObjectType.
protected abstract string ObjectType { get; }
Property Value
- string
PageConfiguration
Page configuration.
public override InfoObjectListingConfiguration PageConfiguration { get; set; }
Property Value
RefetchAllOnDelete
Indicates whether to refetch all templates on delete.
protected virtual bool RefetchAllOnDelete { get; }
Property Value
- bool
Methods
ConfigurePage()
Allows configure and share page specific values prior invocation of the ConfigureTemplateProperties(TClientProperties) or command method.
public override Task ConfigurePage()
Returns
- Task
Delete(int)
Deletes listing item specified by the id
parameter.
public virtual Task<ICommandResponse<RowActionResult>> Delete(int id)
Parameters
id
int
Returns
- Task<ICommandResponse<RowActionResult>>
GetIdentifier(IDataContainer)
Gets the identifier for listing item.
protected virtual object GetIdentifier(IDataContainer dataRecord)
Parameters
dataRecord
IDataContainerListing item.
Returns
- object
GetQuerySource()
Returns the query used as source for data.
protected virtual Task<ObjectQuery> GetQuerySource()
Returns
- Task<ObjectQuery>
Query used as source for data.
GetRowsFromData(IEnumerable<IDataContainer>, CancellationToken)
Transform the result of GetObjectQueryResult(LoadDataSettings, CancellationToken) into a collection of rows for the table of the listing page.
protected Task<IEnumerable<Row>> GetRowsFromData(IEnumerable<IDataContainer> dataContainers, CancellationToken cancellationToken)
Parameters
dataContainers
IEnumerable<IDataContainer>cancellationToken
CancellationToken
Returns
- Task<IEnumerable<Row>>
LoadData(LoadDataSettings, CancellationToken)
Returns LoadDataResult containing data and the number of total items.
protected override Task<LoadDataResult> LoadData(LoadDataSettings settings, CancellationToken cancellationToken)
Parameters
settings
LoadDataSettingsLoad data settings.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<LoadDataResult>