Table of Contents

Class List

Namespace
Dynamicweb.CoreUI.Lists
Assembly
Dynamicweb.CoreUI.dll
public class List : UiComponentBase, IRootComponent
Inheritance
List
Implements
Inherited Members
Extension Methods

Constructors

List()

public List()

List(DataQueryBase?)

public List(DataQueryBase? query)

Parameters

query DataQueryBase

Properties

AddSecondaryAction

public ActionNode? AddSecondaryAction { get; set; }

Property Value

ActionNode

AllowMultiSelect

public bool AllowMultiSelect { get; set; }

Property Value

bool

AllowSorting

public bool AllowSorting { get; set; }

Property Value

bool

AllowViewModes

public bool AllowViewModes { get; set; }

Property Value

bool

AvailableViews

public IEnumerable<ListViewMapping> AvailableViews { get; set; }

Property Value

IEnumerable<ListViewMapping>

Columns

public SortedDictionary<int, Column> Columns { get; }

Property Value

SortedDictionary<int, Column>

CreateNewAction

public ActionNode? CreateNewAction { get; set; }

Property Value

ActionNode

EnableGroupingToggle

public bool EnableGroupingToggle { get; set; }

Property Value

bool

Explanation

public string? Explanation { get; set; }

Property Value

string

FilterValue

public string FilterValue { get; set; }

Property Value

string

Filters

public IEnumerable<FilterBase> Filters { get; set; }

Property Value

IEnumerable<FilterBase>

Groups

public IEnumerable<ListItemGroup>? Groups { get; set; }

Property Value

IEnumerable<ListItemGroup>

Header

public string Header { get; set; }

Property Value

string

HiddenItemCount

The number of rows that exist but are not rendered, because the list is capped to fewer rows than TotalCount. Returns 0 when nothing is hidden.

public int HiddenItemCount { get; }

Property Value

int

Items

public IEnumerable<IListItem> Items { get; set; }

Property Value

IEnumerable<IListItem>

ListScreenDefinition

public Type? ListScreenDefinition { get; set; }

Property Value

Type

ManageAction

public ActionNode? ManageAction { get; set; }

Property Value

ActionNode

NoDataText

public string NoDataText { get; set; }

Property Value

string

PagingCount

public int PagingCount { get; }

Property Value

int

PagingIndex

public int PagingIndex { get; set; }

Property Value

int

PagingSize

public int PagingSize { get; set; }

Property Value

int

PagingSizes

public IEnumerable<List.SizeInfo> PagingSizes { get; set; }

Property Value

IEnumerable<List.SizeInfo>

PrimaryFilter

Optional primary filter selector rendered in the list toolbar (e.g. a quick "filter by shop" dropdown). Each option carries an Action that re-queries the list when selected.

public Select? PrimaryFilter { get; set; }

Property Value

Select

QueryToggles

public IEnumerable<QueryToggle> QueryToggles { get; set; }

Property Value

IEnumerable<QueryToggle>

SearchValue

public string SearchValue { get; set; }

Property Value

string

ShowFiltering

public bool ShowFiltering { get; set; }

Property Value

bool

ShowHeader

public bool ShowHeader { get; set; }

Property Value

bool

ShowListItemActions

public bool ShowListItemActions { get; set; }

Property Value

bool

ShowPaging

public bool ShowPaging { get; set; }

Property Value

bool

ShowQueryToggles

public bool ShowQueryToggles { get; set; }

Property Value

bool

ShowSearch

public bool ShowSearch { get; set; }

Property Value

bool

ShowTruncationFooter

When true and the list shows fewer rows than TotalCount, a footer is rendered stating how many rows are hidden, with an action that opens the full list screen. Used by widget hosts that cap the row count instead of paging.

public bool ShowTruncationFooter { get; set; }

Property Value

bool

SortColumnName

public string? SortColumnName { get; set; }

Property Value

string

SortDirection

public SortDirection? SortDirection { get; set; }

Property Value

SortDirection?

TotalCount

public int TotalCount { get; set; }

Property Value

int

UseGrouping

public bool UseGrouping { get; set; }

Property Value

bool

ViewTypeName

public string ViewTypeName { get; set; }

Property Value

string

Methods

AddListContextAction(ActionNode)

public void AddListContextAction(ActionNode action)

Parameters

action ActionNode

FillList<TRowModel>(FillListOptions<TRowModel>)

public void FillList<TRowModel>(FillListOptions<TRowModel> options)

Parameters

options FillListOptions<TRowModel>

Type Parameters

TRowModel

FillList<TRowModel>(ListScreenConfiguration, DataListViewModel<TRowModel>?, IEnumerable<ListViewMapping>?, Func<string, TRowModel, Cell?>?, Func<TRowModel, ActionBase?>?, Func<TRowModel, IEnumerable<ActionGroup>?>?, Func<TRowModel, string>?, Func<TRowModel, bool>?, Func<TRowModel, bool>?, Func<TRowModel, string?>?, Func<IEnumerable<ListItemGroup>?>?)

public void FillList<TRowModel>(ListScreenConfiguration configuration, DataListViewModel<TRowModel>? listData, IEnumerable<ListViewMapping>? viewMappings, Func<string, TRowModel, Cell?>? GetCell = null, Func<TRowModel, ActionBase?>? GetListItemPrimaryAction = null, Func<TRowModel, IEnumerable<ActionGroup>?>? GetListItemContextActions = null, Func<TRowModel, string>? GetRowId = null, Func<TRowModel, bool>? GetRowSelected = null, Func<TRowModel, bool>? GetRowSelectable = null, Func<TRowModel, string?>? GetListItemGroupID = null, Func<IEnumerable<ListItemGroup>?>? GetListItemGroups = null)

Parameters

configuration ListScreenConfiguration
listData DataListViewModel<TRowModel>
viewMappings IEnumerable<ListViewMapping>
GetCell Func<string, TRowModel, Cell>
GetListItemPrimaryAction Func<TRowModel, ActionBase>
GetListItemContextActions Func<TRowModel, IEnumerable<ActionGroup>>
GetRowId Func<TRowModel, string>
GetRowSelected Func<TRowModel, bool>
GetRowSelectable Func<TRowModel, bool>
GetListItemGroupID Func<TRowModel, string>
GetListItemGroups Func<IEnumerable<ListItemGroup>>

Type Parameters

TRowModel

GetColumnSortDirection(Column)

public SortDirection? GetColumnSortDirection(Column column)

Parameters

column Column

Returns

SortDirection?

GetGroupingToggleAction(bool)

Creates an action that changes grouping on this list's screen.

public ActionBase GetGroupingToggleAction(bool isGrouped)

Parameters

isGrouped bool

true to enable grouping; otherwise, false.

Returns

ActionBase

An action that preserves the workspace URL for its root list or navigates to this list's screen when nested, or a reload action when the list has no screen definition.

GetItemsByGroup(ListItemGroup)

public IEnumerable<IListItem> GetItemsByGroup(ListItemGroup group)

Parameters

group ListItemGroup

Returns

IEnumerable<IListItem>

GetListContextActions()

public virtual ICollection<ActionNode> GetListContextActions()

Returns

ICollection<ActionNode>

GetListViewSwitchAction(string)

Creates an action that changes the view of this list's screen.

public ActionBase GetListViewSwitchAction(string viewModeSettingsTypeName)

Parameters

viewModeSettingsTypeName string

The type name of the requested list view.

Returns

ActionBase

An action that preserves the workspace URL for its root list or navigates to this list's screen when nested, or a reload action when the list has no screen definition.

GetSelectedFiltersCount()

public int GetSelectedFiltersCount()

Returns

int

GetShowAllAction()

Gets the action that opens the full list screen showing every row, or null when the list has no screen definition to navigate to.

public ActionBase? GetShowAllAction()

Returns

ActionBase

IsSortable(Column)

public bool IsSortable(Column column)

Parameters

column Column

Returns

bool

SetListConfiguration(ListScreenConfiguration)

Applies the configured sorting, paging and visibility options to the list.

public void SetListConfiguration(ListScreenConfiguration configuration)

Parameters

configuration ListScreenConfiguration

The composed configuration specifying which list features are enabled.

To top