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
queryDataQueryBase
Properties
AddSecondaryAction
public ActionNode? AddSecondaryAction { get; set; }
Property Value
AllowMultiSelect
public bool AllowMultiSelect { get; set; }
Property Value
AllowSorting
public bool AllowSorting { get; set; }
Property Value
AllowViewModes
public bool AllowViewModes { get; set; }
Property Value
AvailableViews
public IEnumerable<ListViewMapping> AvailableViews { get; set; }
Property Value
Columns
public SortedDictionary<int, Column> Columns { get; }
Property Value
CreateNewAction
public ActionNode? CreateNewAction { get; set; }
Property Value
EnableGroupingToggle
public bool EnableGroupingToggle { get; set; }
Property Value
Explanation
public string? Explanation { get; set; }
Property Value
FilterValue
public string FilterValue { get; set; }
Property Value
Filters
public IEnumerable<FilterBase> Filters { get; set; }
Property Value
Groups
public IEnumerable<ListItemGroup>? Groups { get; set; }
Property Value
Header
public string Header { get; set; }
Property Value
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
Items
public IEnumerable<IListItem> Items { get; set; }
Property Value
ListScreenDefinition
public Type? ListScreenDefinition { get; set; }
Property Value
ManageAction
public ActionNode? ManageAction { get; set; }
Property Value
NoDataText
public string NoDataText { get; set; }
Property Value
PagingCount
public int PagingCount { get; }
Property Value
PagingIndex
public int PagingIndex { get; set; }
Property Value
PagingSize
public int PagingSize { get; set; }
Property Value
PagingSizes
public IEnumerable<List.SizeInfo> PagingSizes { get; set; }
Property Value
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
QueryToggles
public IEnumerable<QueryToggle> QueryToggles { get; set; }
Property Value
SearchValue
public string SearchValue { get; set; }
Property Value
ShowFiltering
public bool ShowFiltering { get; set; }
Property Value
ShowHeader
public bool ShowHeader { get; set; }
Property Value
ShowListItemActions
public bool ShowListItemActions { get; set; }
Property Value
ShowPaging
public bool ShowPaging { get; set; }
Property Value
ShowQueryToggles
public bool ShowQueryToggles { get; set; }
Property Value
ShowSearch
public bool ShowSearch { get; set; }
Property Value
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
SortColumnName
public string? SortColumnName { get; set; }
Property Value
SortDirection
public SortDirection? SortDirection { get; set; }
Property Value
TotalCount
public int TotalCount { get; set; }
Property Value
UseGrouping
public bool UseGrouping { get; set; }
Property Value
ViewTypeName
public string ViewTypeName { get; set; }
Property Value
Methods
AddListContextAction(ActionNode)
public void AddListContextAction(ActionNode action)
Parameters
actionActionNode
FillList<TRowModel>(FillListOptions<TRowModel>)
public void FillList<TRowModel>(FillListOptions<TRowModel> options)
Parameters
optionsFillListOptions<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
configurationListScreenConfigurationlistDataDataListViewModel<TRowModel>viewMappingsIEnumerable<ListViewMapping>GetCellFunc<string, TRowModel, Cell>GetListItemPrimaryActionFunc<TRowModel, ActionBase>GetListItemContextActionsFunc<TRowModel, IEnumerable<ActionGroup>>GetRowIdFunc<TRowModel, string>GetRowSelectedFunc<TRowModel, bool>GetRowSelectableFunc<TRowModel, bool>GetListItemGroupIDFunc<TRowModel, string>GetListItemGroupsFunc<IEnumerable<ListItemGroup>>
Type Parameters
TRowModel
GetColumnSortDirection(Column)
public SortDirection? GetColumnSortDirection(Column column)
Parameters
columnColumn
Returns
GetGroupingToggleAction(bool)
Creates an action that changes grouping on this list's screen.
public ActionBase GetGroupingToggleAction(bool isGrouped)
Parameters
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
groupListItemGroup
Returns
GetListContextActions()
public virtual ICollection<ActionNode> GetListContextActions()
Returns
GetListViewSwitchAction(string)
Creates an action that changes the view of this list's screen.
public ActionBase GetListViewSwitchAction(string viewModeSettingsTypeName)
Parameters
viewModeSettingsTypeNamestringThe 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
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
IsSortable(Column)
public bool IsSortable(Column column)
Parameters
columnColumn
Returns
SetListConfiguration(ListScreenConfiguration)
Applies the configured sorting, paging and visibility options to the list.
public void SetListConfiguration(ListScreenConfiguration configuration)
Parameters
configurationListScreenConfigurationThe composed configuration specifying which list features are enabled.