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
Height
public int Height { get; set; }
Property Value
Items
Gets or sets the item fields items.
public IList<ListItem> Items { get; set; }
Property Value
ItemType
[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "inputClass=std editor-parameter")]
public string ItemType { get; set; }
Property Value
SortBy
[AddInParameter("Sort by")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter")]
public string SortBy { get; set; }
Property Value
SortOrder
[AddInParameter("Sort order")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter; none=False")]
public string SortOrder { get; set; }
Property Value
Width
public int Width { get; set; }
Property Value
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
get_SortValuesStorage(string)
[Obsolete("Use GetSortValues instead")]
public static List<Tuple<string, object>> get_SortValuesStorage(string listId)
Parameters
listId
string
Returns
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
GetSortValues(string)
public static List<Tuple<string, object>> GetSortValues(string listId)
Parameters
listId
string
Returns
GetViewModelValue(object)
Gets the value as a collection of ItemViewModel
public override object GetViewModelValue(object value)
Parameters
value
object
Returns
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
SetSortValues(string, List<Tuple<string, object>>)
public static void SetSortValues(string listId, List<Tuple<string, object>> value)