Table of Contents

Class ItemRelationListEditor

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

Represents a Item relation list editor.

[Editor("Item relation list")]
public class ItemRelationListEditor : Editor, IListEditor, IParameterOptions
Inheritance
ItemRelationListEditor
Implements
Inherited Members

Properties

DataType

Gets the data type for this editor.

public override Type DataType { get; }

Property Value

Type

ItemSourse

[AddInParameter("Item source")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "required=True; none=False")]
public string ItemSourse { get; set; }

Property Value

string

ItemType

[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "required=True")]
public string ItemType { get; set; }

Property Value

string

Items

Gets or sets the item fields items.

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

Property Value

IList<ListItem>

MaxNumber

[AddInParameter("Maximum number of items")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string MaxNumber { get; set; }

Property Value

string

MinNumber

[AddInParameter("Minumum number of items")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string MinNumber { get; set; }

Property Value

string

SortBy

[AddInParameter("Sort by")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "")]
public string SortBy { get; set; }

Property Value

string

SortOrder

[AddInParameter("Sort order")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=False")]
public string SortOrder { get; set; }

Property Value

string

Validators

Gets or sets the list of editor validators.

public override ValidatorCollection Validators { get; }

Property Value

ValidatorCollection

Methods

GetViewModelValue(object)

Gets the value as a collection of ItemViewModel

public override object GetViewModelValue(object value)

Parameters

value object

Returns

object

HasSourceType(ItemListSource)

Determines whether this ItemRelationListEditor has the given ItemRelationListEditor.ItemListSource.

public bool HasSourceType(ItemRelationListEditor.ItemListSource source)

Parameters

source ItemRelationListEditor.ItemListSource

The ItemRelationListEditor.ItemListSource

Returns

bool

RenderValue(EditorRenderingContext)

Renders value.

public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext

Editor rendering context.

To top