Table of Contents

Class ListEditor<T>

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll

Represents a list editor.

public abstract class ListEditor<T> : Editor, IListEditor, IListTemplate, IListBaseEditor

Type Parameters

T

Item value type.

Inheritance
ListEditor<T>
Implements
Derived
Inherited Members

Constructors

ListEditor()

Initializes a new instance of an object.

protected ListEditor()

Fields

MaxIconColumnsPerRow

protected const int MaxIconColumnsPerRow = 10

Field Value

int

Properties

DataType

Gets the data type for this editor.

public override Type DataType { get; }

Property Value

Type

ItemTemplate

Gets or sets the item template

public virtual string ItemTemplate { get; set; }

Property Value

string

Items

Gets or sets the editor items.

public IList<ListItem> Items { get; set; }

Property Value

IList<ListItem>

Mode

Gets the list mode.

public virtual ListEditorMode Mode { get; }

Property Value

ListEditorMode

SourceItems

Gets or sets the list items.

public IEnumerable<Item> SourceItems { get; set; }

Property Value

IEnumerable<Item>

Methods

ConvertValueToList(object)

public List<object> ConvertValueToList(object value)

Parameters

value object

Returns

List<object>

GetListEditorViewModel(object, ItemField)

public ListEditorViewModel<T> GetListEditorViewModel(object value, ItemField field)

Parameters

value object
field ItemField

Returns

ListEditorViewModel<T>

GetViewModel(object, ItemField, bool)

protected ListViewModel GetViewModel(object value, ItemField field, bool allowSorting)

Parameters

value object
field ItemField
allowSorting bool

Returns

ListViewModel

GetViewModelValue(object, ItemField)

Gets the model to use when rendering list viewmodels with included options- ListViewModel

public override object GetViewModelValue(object value, ItemField field)

Parameters

value object

Value

field ItemField

Field

Returns

object

IsItemSelected(IEnumerable<object>, FieldOptionMetadata)

public bool IsItemSelected(IEnumerable<object> selectedValues, FieldOptionMetadata option)

Parameters

selectedValues IEnumerable<object>
option FieldOptionMetadata

Returns

bool

RenderValue(EditorRenderingContext)

Renders value.

public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext

Editor rendering context.

StringifyValue(object)

Returns string representation of editor value.

public override string StringifyValue(object value)

Parameters

value object

Editor value.

Returns

string
To top