Table of Contents

Class ItemListEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a file editor.
[Editor("Item list (deprecated)")]
[Obsolete("This class is obsolete. Use ItemRelationListEditor instead.")]
public class ItemListEditor : Editor, IListEditor, IDropDownOptions
Inheritance
ItemListEditor
Implements
Inherited Members

Properties

DataType

Gets the data type for this editor.
public override Type DataType { get; }

Property Value

Type

Height

public int Height { get; set; }

Property Value

int

Items

Gets or sets the item fields items.
public IList<ListItem> Items { get; set; }

Property Value

IList<ListItem>

ItemType

[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "inputClass=std editor-parameter")]
public string ItemType { get; set; }

Property Value

string

SortBy

[AddInParameter("Sort by")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter")]
public string SortBy { get; set; }

Property Value

string

SortOrder

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

Property Value

string

Width

public int Width { get; set; }

Property Value

int

Methods

BeginEdit(EditorContext)

Enables the editor to populate its UI to the client and initiate the editing process.
public override void BeginEdit(EditorContext context)

Parameters

context EditorContext
Editor context.

BeginEditFrontend(EditorContext)

ItemListEditor frontend rendering
public override void BeginEditFrontend(EditorContext context)

Parameters

context EditorContext

EndEdit()

Returns the edited value.
public override object EndEdit()

Returns

object
The edited value.

EndEditFrontend()

Returns the edited value for frontend
public override object EndEditFrontend()

Returns

object

get_SortValuesStorage(string)

[Obsolete("Use GetSortValues instead")]
public static List<Tuple<string, object>> get_SortValuesStorage(string listId)

Parameters

listId string

Returns

List<Tuple<string, object>>

GetItems(IEnumerable<string>)

Returns a list of items that needs to be rendered.
public IEnumerable<ItemEntry> GetItems(IEnumerable<string> ids)

Parameters

ids IEnumerable<string>

Returns

IEnumerable<ItemEntry>
A list of items that needs to be rendered.

GetOptions(string)

Get options for editors with multiple values
public Hashtable GetOptions(string dropdownName)

Parameters

dropdownName string

Returns

Hashtable

GetSortValues(string)

public static List<Tuple<string, object>> GetSortValues(string listId)

Parameters

listId string

Returns

List<Tuple<string, object>>

GetViewModelValue(object)

Gets the value as a collection of ItemViewModel
public override object GetViewModelValue(object value)

Parameters

value object

Returns

object

RenderValue(EditorRenderingContext)

Renders the list of items
public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext

set_SortValuesStorage(string, List<Tuple<string, object>>)

[Obsolete("Use SetSortValues instead")]
public static void set_SortValuesStorage(string listId, List<Tuple<string, object>> value)

Parameters

listId string
value List<Tuple<string, object>>

SetSortValues(string, List<Tuple<string, object>>)

public static void SetSortValues(string listId, List<Tuple<string, object>> value)

Parameters

listId string
value List<Tuple<string, object>>
To top