Class RadioButtonListEditor<T>
- Namespace
 - Dynamicweb.Content.Items.Editors
 
- Assembly
 - Dynamicweb.dll
 
Represents a radio button list editor.
  
  [Group("Lists")]
[Editor("Radio button list")]
public class RadioButtonListEditor<T> : ListEditor<T>, IListEditor, IListTemplate, IDropDownOptions
  Type Parameters
T- Item value type.
 
- Inheritance
 - 
      
      
      
      ListEditor<T>RadioButtonListEditor<T>
 
- Implements
 
- Inherited Members
 
Constructors
RadioButtonListEditor()
Initializes a new instance of an object.
  
  public RadioButtonListEditor()
  Properties
EncodeValues
Gets or sets the flag is the values should be encoded in DB.
  
  [AddInLabel("Encode values")]
[AddInParameter("EncodeValues")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public override bool EncodeValues { get; set; }
  Property Value
IconMaxHeight
Gets or sets the value of icon max height.
  
  [AddInLabel("Options icon max height")]
[AddInParameter("IconMaxHeight")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
[AddInDescription("Icon max height")]
public virtual int IconMaxHeight { get; set; }
  Property Value
IconMaxWidth
Gets or sets the value of icon max width.
  
  [AddInLabel("Options icon max width")]
[AddInParameter("IconMaxWidth")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
[AddInDescription("Icon max width")]
public virtual int IconMaxWidth { get; set; }
  Property Value
IconPosition
Gets or sets the value which defines the option icon position.
  
  [AddInLabel("Options icon position")]
[AddInParameter("IconPosition")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "SortBy=Key;inputClass=std editor-parameter")]
[AddInDescription("Icon count per row")]
public virtual int IconPosition { get; set; }
  Property Value
ItemTemplate
Gets or sets the item template
  
  [AddInLabel("Options template")]
[AddInParameter("ItemTemplate")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=Templates/Items;FullPath=false;inputClass=std editor-parameter;")]
public override string ItemTemplate { get; set; }
  Property Value
LabelPosition
Gets or sets the value which defines the option label position.
  
  [AddInLabel("Options label position")]
[AddInParameter("LabelPosition")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter")]
[AddInDescription("Label position relatively icon")]
public virtual int LabelPosition { get; set; }
  Property Value
Mode
Gets the list mode.
  
  public override ListEditorMode Mode { get; }
  Property Value
Methods
GetOptions(string)
Returns options wich define option label and icon positions.
  
  public Hashtable GetOptions(string dropdownName)
  Parameters
dropdownNamestring- The name of dropdown.
 
Returns
HasValue()
Tell if this editor returns a value
  
  [Obsolete("Do not use")]
public override bool HasValue()
  Returns
RenderList(EditorContext, T)
Renders list.
  
  [Obsolete("Do not use")]
protected override void RenderList(EditorContext context, T selectedItem)
  Parameters
contextEditorContext- Editor context.
 selectedItemT- Selected item.