Table of Contents

Class ListingPageBase<TPageConfiguration, TClientProperties>

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

Listing page for defining a table and providing a data set.

[UIEvaluatePermission("View")]
public abstract class ListingPageBase<TPageConfiguration, TClientProperties> : Page<TClientProperties>, IPage where TPageConfiguration : ListingConfiguration where TClientProperties : ListingTemplateClientProperties, new()

Type Parameters

TPageConfiguration
TClientProperties
Inheritance
object
Page<TClientProperties>
ListingPageBase<TPageConfiguration, TClientProperties>
Implements
Derived
ListingPageBase<TPageConfiguration>
Inherited Members
Extension Methods

Remarks

Only use this class if you need to define a custom client properties class.

Constructors

ListingPageBase()

Initializes a new instance of the ListingPageBase<TPageConfiguration> class.

protected ListingPageBase()

Properties

PageConfiguration

Page configuration.

public abstract TPageConfiguration PageConfiguration { get; set; }

Property Value

TPageConfiguration

Methods

Change(FormSubmissionCommandArguments, CancellationToken)

Handles the form change command. The command is invoked whenever visibility conditions or form component configurators of the form need to be reevaluated to re-render the form.

public Task<ICommandResponse<FilterFormChangeResult>> Change(FormSubmissionCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args FormSubmissionCommandArguments

Form change arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<FilterFormChangeResult>>

ComponentCommand(FormComponentCommandModel, CancellationToken)

Handles the form component command invocation.

public virtual Task<object> ComponentCommand(FormComponentCommandModel commandModel, CancellationToken cancellationToken)

Parameters

commandModel FormComponentCommandModel

Form component command arguments.

cancellationToken CancellationToken

The cancellation instruction.

Returns

Task<object>

Returns the form component command result.

ConfigureTemplateProperties(TClientProperties)

Gets the object representing client side template properties.

public override Task<TClientProperties> ConfigureTemplateProperties(TClientProperties properties)

Parameters

properties TClientProperties

Initialized properties object.

Returns

Task<TClientProperties>

GetFilterFormComponentsContext()

Gets the form component context for the form components.

protected virtual Task<IFormContext> GetFilterFormComponentsContext()

Returns

Task<IFormContext>

LoadData(LoadDataCommandArguments, CancellationToken)

Returns result containing data and the number of total items.

public Task<ICommandResponse<LoadDataResult>> LoadData(LoadDataCommandArguments args, CancellationToken cancellationToken)

Parameters

args LoadDataCommandArguments

Command arguments provided by client.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse<LoadDataResult>>

LoadData(LoadDataSettings, CancellationToken)

Returns LoadDataResult containing data and the number of total items.

protected abstract Task<LoadDataResult> LoadData(LoadDataSettings settings, CancellationToken cancellationToken)

Parameters

settings LoadDataSettings

Load data settings.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<LoadDataResult>