Click or drag to resize

List Class

Represents a list of items.
Inheritance Hierarchy
System.Web.UIControl
  Dynamicweb.ControlsList

Namespace:  Dynamicweb.Controls
Assembly:  Dynamicweb.Controls (in Dynamicweb.Controls.dll) Version: 4.2.3
Syntax
[DefaultPropertyAttribute("Title")]
public class List : Control, IPostBackEventHandler, IResourceLoader

The List type exposes the following members.

Constructors
  NameDescription
Public methodList
Initializes a new instance of a class.
Top
Properties
  NameDescription
Public propertyAllowMultiSelect
Gets or sets value indicating whether to allow multi-select functionality.
Public propertyAllowToRemoveSorting
When set, its possible to remove list sorting
Public propertyColumns
Gets the collection of list columns.
Public propertyContextMenuID
ID of Dynamicweb.Controls.Contextmenu to display on right click.
Public propertyCount
Number of items in list - if set shown in title.
Public propertyDoBlinkCollapseButton
If set, the CollapseButton will blink, notifying the user of e.g. non-standard filter settings
Public propertyFilterBy
Column to filter by.
Public propertyFilters
Gets the collection of list filters.
Public propertyFilterString
Value to filter by.
Public propertyFooter
Footer of the list.
Public propertyHandlePagingManually
When set to true only fill the list with one page and set the page number manually
Public propertyHandleSortingManually
When set to true only fill the list by already sorted collection
Public propertyHasFilters
Gets value indicating whether list has any filters attached.
Public propertyHeight
Width of the column.
Public propertyIsBeingSorted
Indicates whether this List is being sorted.
Public propertyIsCollapsed
Public propertyIsRestoreState
Public propertyItemCount
Number of items in total. Calculated based on added items, but can be overruled if only some items are added due to performance. PageNumber property to calculate how many to load.
Public propertyNoItemsMessage
Message to display if the list has no items.
Public propertyOnClientCollapse
Gets or sets the client site script that fires when the filters are collapsed (hidden)
Public propertyOnClientSelect
Public propertyOnClientUnCollapse
Gets or sets the client site script that fires when the filters are uncollapsed (shown)
Public propertyPageCount
Number of pages.
Public propertyPageNumber
Current page.
Public propertyPageSize
Number of items per page.
Public propertyPersonalize
Gets or sets value indicating whether to enable personal settings.
Public propertyRenderWithDiv
Gets or sets value indicating whether to render the list in divs for the new UI.
Public propertyRowCount
Gets the current count of rows in this List
Public propertyRows
Public propertySelectedRows
Gets selected rows.
Public propertyShowCollapseButton
When set, its possible to hide and show the filter area
Public propertyShowCount
If set to True, the List will show number of rows and pages according to the number of Rows added
Public propertyShowEmptyEndColumn
Public propertyShowFooter
Gets or sets value indicating whether to show list footer.
Public propertyShowHeader
Gets or sets value indicating whether to show list header.
Public propertyShowPaging
Gets or sets value indicating whether to show paging area.
Public propertyShowTitle
Gets or sets value indicating whether to show list title.
Public propertySortColumnIndex
Gets the column index (from the postback) that this list was sorted by.
Public propertySortDirection
Gets the sort direction (from the postback).
Public propertyStartCollapsed
When set, the filter area starts collapsed
Public propertyStretchContent Obsolete.
Gets or sets value indicating whether to stretch the list content to fit the parent container.
Public propertyTitle
Title of the list.
Public propertyTranslateTitle
Gets or sets value indicating whether to translate the list title.
Public propertyUseCountForPaging
If set to True, the List will show number of rows and pages according to the Count Property
Public propertyWidth
Width of the list.
Top
Methods
  NameDescription
Public methodAddRow
Adds a row to the list.
Public methodClear
Removes all rows from the list.
Public methodGetAllItemIDs
Public methodGetControlState
Public methodGetRowsByInternalIds
Public methodGetSelectedRows
Retrieves all selected rows from current page.
Public methodGetSelectedRowsFromAllPages
Retrieves all selected rows from all pages.
Public methodGetViewFrame
Retrieves an array represeing a current view frame of the list.
Public methodLoadResources
Protected methodOnBeforeInitFilters
Protected methodOnFiltersApplied
Fires FiltersApplied event.
Protected methodOnInit
Handles list "Init" event.
Protected methodOnLoad
Handles list "Load" event.
Protected methodOnPageIndexChanged
Fires PageIndexChanged event.
Protected methodOnPageIndexChanging
Fires PageIndexChanging event.
Protected methodOnPreRender
Handles list "PreRender" event.
Protected methodOnRemoveSorting
Protected methodOnSort
Fires Sort event.
Protected methodRaisePostBackChangingEvent
Public methodRaisePostBackEvent
Processes list events.
Public methodRemoveRow
Removes a row from the list.
Public methodRemoveRowAt
Removes the row at the specified index
Public methodRemoveRowRange
Removes a range of Rows from the List
Protected methodRender
Renders list.
Protected methodRenderRows
Renders list rows.
Public methodSetupControlState
Public methodSortRows(Int32, ListSortDirection)
Sorts list rows.
Public methodSortRows(ListColumn, ListSortDirection)
Sorts list rows.
Public methodSortRows(Int32, ListSortDirection, Boolean)
Sorts list rows.
Top
Events
  NameDescription
Public eventBeforeInitFilters
Public eventFiltersApplied
Occurs when all filters are applied to the list rows.
Public eventPageIndexChanged
Occurs when page index has been changed.
Public eventPageIndexChanging
Occurs when the page index is changing.
Public eventRemoveSorting
Occurs when the list sorting is being removed
Public eventRowExpand
Ajax event which is fired when list row is being expanded.
Public eventSort
Occurs when the list is being sorted.
Top
Remarks