Class ListingPageBase<TPageConfiguration, TClientProperties>
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
-
objectPage<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
FormSubmissionCommandArgumentsForm change arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
ComponentCommand(FormComponentCommandModel, CancellationToken)
Handles the form component command invocation.
public virtual Task<object> ComponentCommand(FormComponentCommandModel commandModel, CancellationToken cancellationToken)
Parameters
commandModel
FormComponentCommandModelForm component command arguments.
cancellationToken
CancellationTokenThe 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
TClientPropertiesInitialized 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
LoadDataCommandArgumentsCommand arguments provided by client.
cancellationToken
CancellationTokenCancellation 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
LoadDataSettingsLoad data settings.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<LoadDataResult>