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, IDropDownOptions
Inheritance
ItemRelationListEditor
Implements
Inherited Members

Properties

DataType

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

Property Value

Type

Height

[Obsolete("Do not use")]
public int Height { get; set; }

Property Value

int

InstantSave

[Obsolete("Do not use")]
public bool InstantSave { get; set; }

Property Value

bool

Items

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

Property Value

IList<ListItem>

ItemSourse

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

Property Value

string

ItemType

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

Property Value

string

MaxNumber

[AddInParameter("Maximum number of items")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=std editor-parameter")]
public string MaxNumber { get; set; }

Property Value

string

MinNumber

[AddInParameter("Minumum number of items")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=std editor-parameter")]
public string MinNumber { get; set; }

Property Value

string

PageNumber

[Obsolete("Do not use")]
public int PageNumber { get; set; }

Property Value

int

PageSize

[Obsolete("Do not use")]
public int PageSize { get; set; }

Property Value

int

SearchQuery

[Obsolete("Do not use")]
public string SearchQuery { get; set; }

Property Value

string

ShowPaging

[Obsolete("Do not use")]
public bool ShowPaging { get; set; }

Property Value

bool

ShowSearch

[Obsolete("Do not use")]
public bool ShowSearch { get; set; }

Property Value

bool

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

TopLimit

[Obsolete("Do not use")]
public int TopLimit { get; set; }

Property Value

int

Validators

Gets or sets the list of editor validators.
public override ValidatorCollection Validators { get; }

Property Value

ValidatorCollection

Width

[Obsolete("Do not use")]
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.
[Obsolete("Do not use")]
public override void BeginEdit(EditorContext context)

Parameters

context EditorContext
Editor context.

BeginEditFrontend(EditorContext)

ItemListEditor frontend rendering
[Obsolete("Do not use")]
public override void BeginEditFrontend(EditorContext context)

Parameters

context EditorContext

EndEdit()

Returns the edited value.
[Obsolete("Do not use")]
public override object EndEdit()

Returns

object
The edited value.

EndEditFrontend()

Returns the edited value for frontend
[Obsolete("Do not use")]
public override object EndEditFrontend()

Returns

object

get_SortValuesStorage(string)

[Obsolete("Do not use")]
public static List<Tuple<string, object>> get_SortValuesStorage(string listId)

Parameters

listId string

Returns

List<Tuple<string, object>>

GetOptions(string)

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

Parameters

dropdownName string

Returns

Hashtable

GetSortValues(string)

[Obsolete("Do not use")]
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 value.
public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext
Editor rendering context.

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

[Obsolete("Do not use")]
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>>)

[Obsolete("Do not use")]
public static void SetSortValues(string listId, List<Tuple<string, object>> values)

Parameters

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