Table of Contents

Class DataContainerListingPage

Namespace
Kentico.Xperience.Admin.Base
Assembly
Kentico.Xperience.Admin.Base.dll

Listing page for data containers.

public abstract class DataContainerListingPage : ListingPageBase<ListingConfiguration>, IPage
Inheritance
object
DataContainerListingPage
Implements
Derived
Inherited Members
Extension Methods

Constructors

DataContainerListingPage()

protected DataContainerListingPage()

Properties

PageConfiguration

Page configuration.

public override ListingConfiguration PageConfiguration { get; set; }

Property Value

ListingConfiguration

Methods

GetIdentifier(IDataContainer)

Gets the identifier for listing item.

protected abstract object GetIdentifier(IDataContainer dataContainer)

Parameters

dataContainer IDataContainer

Listing item.

Returns

object

GetRowsFromData(IEnumerable<IDataContainer>, CancellationToken)

Transforms the result of LoadDataContainers(CancellationToken) with parametrization 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>

Data of the rows.

cancellationToken CancellationToken

Cancellation token.

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 LoadDataSettings

Load data settings.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<LoadDataResult>

LoadDataContainers(CancellationToken)

Returns enumeration of IDataContainers.

protected abstract Task<IEnumerable<IDataContainer>> LoadDataContainers(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IEnumerable<IDataContainer>>

LoadListingDataContainers(ListingDataSettings, CancellationToken)

Loads the listing data (data containers and their total count) described by the settings from the containers returned by LoadDataContainers(CancellationToken), applying the search, sorting, and paging in memory.

protected virtual Task<ListingData> LoadListingDataContainers(ListingDataSettings settings, CancellationToken cancellationToken)

Parameters

settings ListingDataSettings

Description of the data to load.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ListingData>

Remarks

This is the data primitive of the listing page serving both the table and the export. Unlike LoadData(LoadDataSettings, CancellationToken), which returns the rows of a single table page, this method returns the raw data: the table rows are generated from the paginated data, and the export is built from the first page sized by the export row limit.